1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
Commit Graph

185 Commits

Author SHA1 Message Date
Timothy Clem
2ee93b4525 New shape for yield statements 2016-12-05 15:56:18 -08:00
Timothy Clem
47402c7c8a New shape for return statements 2016-12-05 15:54:59 -08:00
Rick Winfrey
859820cfb2 Added support for Continue statements in JavaScript 2016-11-30 15:40:06 -06:00
Rick Winfrey
1329d6c763 Add Break Syntax constructor 2016-11-30 15:30:51 -06:00
joshvera
2ea54313a4 Add type conversions 2016-11-21 15:44:31 -05:00
joshvera
83453dd54f Add type assertions 2016-11-21 15:27:06 -05:00
joshvera
30a3961409 Add go, defer, and subscript access statements 2016-11-14 19:05:02 -05:00
joshvera
6e248e76f0 Add select statements 2016-11-14 17:47:04 -05:00
Timothy Clem
ba9e0424ff Implement until as a negation of while 2016-11-07 13:33:41 -08:00
Timothy Clem
cafcd8fd91 Implement unless as a Negate syntax 2016-11-07 13:12:53 -08:00
Timothy Clem
363fb62bd7 Remove comment 2016-11-07 13:11:03 -08:00
Timothy Clem
b541a903dd Collapse up Ruby begin with Try syntax 2016-11-07 10:26:59 -08:00
Timothy Clem
2b195508fd Streamline block expression 2016-11-04 15:45:26 -07:00
Timothy Clem
463d075879 Refactor ruby case/when into switch/case Syntax and start on elsif 2016-11-04 15:35:09 -07:00
Timothy Clem
5705393b10 Remove Args syntax entirely! 2016-11-04 13:42:06 -07:00
Timothy Clem
437522f5e1 Remove need for Params syntax 2016-11-04 13:05:28 -07:00
Timothy Clem
c02c32ac7c Back to a single Rescue syntax 2016-11-04 12:29:02 -07:00
Timothy Clem
769413813c Better begin and method declaration parsing and summaries 2016-11-03 14:24:05 -07:00
Timothy Clem
452d795ddd Merge remote-tracking branch 'origin/master' into more-ruby-parsing 2016-11-03 09:26:35 -07:00
Timothy Clem
4daf39476e Parse rescue modifiers 2016-11-03 09:23:35 -07:00
Timothy Clem
a98185f1a6 Rescue blocks in all their glory 2016-11-02 17:18:09 -07:00
Timothy Clem
fbe7bc7c13 Better handling of case/when 2016-11-02 13:42:06 -07:00
Timothy Clem
295d03dd43 Handle rescue blocks 2016-11-02 13:05:30 -07:00
Timothy Clem
71f53b37fd Handle ensure blocks and refactor to BlockExpression syntax 2016-11-02 12:55:48 -07:00
Timothy Clem
2c1497ab99 Handle else blocks in begin statements 2016-11-02 11:10:01 -07:00
Timothy Clem
fc73be16d7 Better handling of begin statements 2016-11-02 10:52:40 -07:00
Rick Winfrey
1cd998ff88 Merge branch 'master' into syntax-term-to-json 2016-11-01 17:58:15 -05:00
Rick Winfrey
72899821bc Add generic ToJSON instance for Syntax 2016-11-01 15:03:18 -05:00
Timothy Clem
a950a07b40 While and Until just have a list of f 2016-10-31 13:14:32 -07:00
Timothy Clem
c21307b5f7 Parse for iterator syntax 2016-10-27 10:07:24 -07:00
Timothy Clem
539a68f06e Parse lambdas 2016-10-27 09:24:28 -07:00
Timothy Clem
5dd53c0b93 if/unless modifiers and (sort of) unless statements 2016-10-26 14:49:51 -07:00
Timothy Clem
3bbfb765a5 Parse if, with some caveats 2016-10-26 14:32:08 -07:00
Timothy Clem
013f6392ff Parse while and until statements and modifiers 2016-10-26 12:54:21 -07:00
Timothy Clem
1b6c70f4ee Parse yield and return 2016-10-26 10:27:38 -07:00
Timothy Clem
56c2dae42f Bring in LOTS more of the ruby grammar 2016-10-24 10:43:31 -07:00
Rick Winfrey
ddb39bdbcc Update If Syntax to use a list to represent else conditions
- This lets us use a simple structure to break apart nested else-ifs
2016-10-12 12:32:55 -05:00
Rick Winfrey
55e2b7b1f9 Merge branch 'master' into if-else-if 2016-10-12 09:41:16 -05:00
Rick Winfrey
d4ac4427d3 Add comment 2016-10-11 12:02:52 -05:00
joshvera
d95283f4a1 Merge remote-tracking branch 'origin/master' into add-source-spans 2016-10-11 10:45:22 -04:00
joshvera
c0a8483263 Merge remote-tracking branch 'origin/master' into add-source-spans 2016-10-07 11:28:57 -04:00
Rick Winfrey
3e23076ecc Merge branch 'master' into import-export-syntax 2016-10-07 10:20:11 -05:00
Timothy Clem
da90b74044 New parsing of function params 2016-10-06 15:20:05 -07:00
Rick Winfrey
7d8988ce21 Some exports have identifiers 2016-10-06 16:03:06 -05:00
Rick Winfrey
818daf1968 Make Import Syntax an identifier and a list 2016-10-06 15:47:29 -05:00
Rick Winfrey
3ca3d9f035 Add Diff Summary support for Export Syntax 2016-10-06 15:46:59 -05:00
Rick Winfrey
63ca53b828 Add Import Syntax 2016-10-06 15:19:11 -05:00
joshvera
7ba5607cc8 Add source spans to terms 2016-10-05 17:27:45 -04:00
joshvera
4f41619c8e Merge remote-tracking branch 'origin/master' into rws-large-diffs 2016-10-05 12:17:29 -04:00
Rick Winfrey
af1a952348 Add Module syntax 2016-10-03 17:17:03 -05:00
joshvera
16aae4d95d Move a few declarations into Prologue 2016-09-16 10:14:51 -04:00
joshvera
d16cdefe34 Keep a hash for every node instead of a vector 2016-09-01 16:58:24 -04:00
joshvera
7708985f12 Add hashDecorator 2016-09-01 13:02:05 -04:00
joshvera
2723b657a4 Derive Hashable for SourcePos, SourceSpan, and Syntax 2016-09-01 12:10:35 -04:00
Rick Winfrey
5cf03924f9 Function id no longer a Maybe 2016-08-22 18:56:20 -05:00
Rick Winfrey
b4c05feb63 Add AnonymousFunction Syntax constructor 2016-08-22 18:55:54 -05:00
joshvera
5615da1bc0 Change methodParams to be a list of args 2016-08-17 10:42:05 -04:00
joshvera
e209199016 Add If constructor to Syntax 2016-08-11 17:39:44 -04:00
Rob Rix
af34a7bf1c Haddock-friendly docs for Syntax. 2016-08-04 12:26:07 -04:00
Rob Rix
7378668b2c Put the = before the first constructor. 2016-08-04 12:25:56 -04:00
joshvera
36c4001682 Merge remote-tracking branch 'origin/master' into throw-syntax 2016-08-01 13:55:44 -04:00
joshvera
ef4389a5c5 Merge remote-tracking branch 'origin/master' into constructors 2016-08-01 13:49:35 -04:00
joshvera
9bd34fe3ff Merge remote-tracking branch 'origin/master' into try-syntax 2016-08-01 13:38:50 -04:00
joshvera
b458d28c57 Merge remote-tracking branch 'origin/master' into array-syntax 2016-08-01 13:30:37 -04:00
joshvera
f228ed0b6d Add Constructor to Syntax 2016-07-30 14:27:11 -04:00
joshvera
d3df14cafd Add method definitions 2016-07-29 23:41:21 -04:00
joshvera
bb630ebbb0 Move Syntax instance up 2016-07-29 18:33:09 -04:00
joshvera
f931031515 s/body/list of expressions 2016-07-29 18:33:01 -04:00
joshvera
828a2163bf Add MethodDefinition 2016-07-29 18:31:39 -04:00
joshvera
2985bbd256 Add MethodDefinition to Syntax 2016-07-29 17:37:51 -04:00
joshvera
19b29e6beb Add Array to Syntax 2016-07-29 16:42:38 -04:00
joshvera
edaab80540 Add Class to Syntax 2016-07-29 16:22:41 -04:00
joshvera
2490d92c37 Add Try statement 2016-07-29 15:45:25 -04:00
joshvera
2dbe0eca0a Add Throw to Syntax 2016-07-29 15:31:11 -04:00
joshvera
e38ce8b883 Add SourceSpan to Error syntax 2016-07-29 13:59:30 -04:00
joshvera
4493751dd7 Merge remote-tracking branch 'origin/master' into error-syntax 2016-07-29 12:18:14 -04:00
joshvera
fbc9e335a3 Merge remote-tracking branch 'origin/master' into error-syntax 2016-07-29 11:44:38 -04:00
joshvera
7f3cb2e9ef Merge remote-tracking branch 'origin/master' into loop-syntax 2016-07-29 11:42:25 -04:00
joshvera
da0f21a07f Relax For constraint to take a list of clauses 2016-07-28 16:18:30 -04:00
joshvera
d057e156cd Add Return case to Syntax 2016-07-28 14:34:53 -04:00
joshvera
8b4de1e63a Label the DoWhile terms correctly 2016-07-28 14:26:42 -04:00
joshvera
7eac130089 Add DoWhile and While cases 2016-07-28 14:08:34 -04:00
joshvera
4678805bb1 Add a For case to Syntax 2016-07-28 13:50:20 -04:00
joshvera
c11d955f57 Add comments 2016-07-28 11:24:19 -04:00
joshvera
8b0f496b90 Merge remote-tracking branch 'origin/master' into error-syntax 2016-07-27 19:00:27 -04:00
joshvera
3b3d3282cb Add Error case to Syntax 2016-07-25 14:56:51 -04:00
Rob Rix
77969d5366 Merge branch 'master' into sequenceable
# Conflicts:
#	src/Diff.hs
#	src/Syntax.hs
2016-07-22 18:40:11 -04:00
Rob Rix
9ae7f52e8f Rename Sequenceable to Mergeable. 2016-07-22 17:38:10 -04:00
Rob Rix
0b85a1826d Derive the Sequenceable instance over Syntax. 2016-07-22 16:15:04 -04:00
Rob Rix
d32652d5eb Syntax is Sequenceable via genericSequenceAlt. 2016-07-22 16:09:28 -04:00
Rob Rix
1ede2d2a23 Syntax uses the generically derived GSequenceable implementation. 2016-07-22 16:07:07 -04:00
Rob Rix
e780689400 Syntax is GSequenceable. 2016-07-22 16:06:52 -04:00
Rob Rix
9b322da2be Add a Sequenceable instance over Syntax. 2016-07-22 15:30:35 -04:00
Rob Rix
c92cc987ed Put some formatting back. 2016-07-22 13:52:48 -04:00
joshvera
27c338331f Merge remote-tracking branch 'origin/master' into syntax-redux 2016-07-14 15:22:46 -04:00
Rob Rix
bc05e694a3 🔥 Keyed syntax nodes. 2016-07-12 23:27:09 -04:00
Rick Winfrey
177af03bd3 Merge branch 'master' into syntax-redux 2016-07-12 17:03:35 -05:00
Rob Rix
ba71516f02 Derive a Generic1 instance for Syntax. 2016-07-11 12:18:20 -04:00
joshvera
73afe7d1e9 Add zipTerms to Pairs 2016-07-08 13:16:06 -04:00
joshvera
567e815f28 s/CommentedSyntax/Commented 2016-07-08 11:48:20 -04:00