1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
Commit Graph

12035 Commits

Author SHA1 Message Date
Rob Rix
d215d0b597 Assign ||=. 2017-05-03 11:41:17 -04:00
Rob Rix
4b01c83fe3 Define bitwise operator syntax. 2017-05-03 11:40:14 -04:00
Rob Rix
82d2a73cf2 Define the modulus operation. 2017-05-03 11:38:18 -04:00
Rob Rix
417b990d00 Represent boolean operations with a single type. 2017-05-03 11:37:43 -04:00
Rob Rix
3db7c5ff4f Assign /=. 2017-05-03 11:35:36 -04:00
Rob Rix
7790ff6441 Represent arithmetic operations with a single type. 2017-05-03 11:35:00 -04:00
Rob Rix
f408214d85 Assign **=. 2017-05-03 11:31:36 -04:00
Rob Rix
6e51415cfb Assign *=. 2017-05-03 11:28:47 -04:00
Rob Rix
3b54a4ebf3 Assign -=. 2017-05-03 11:27:03 -04:00
Rob Rix
b8bd18e742 Define binary subtraction syntax. 2017-05-03 11:26:53 -04:00
Rob Rix
b4face5176 Clarify one of the test descriptions. 2017-05-03 11:23:31 -04:00
Rob Rix
2b9fb8552a Only drop anonymous nodes for choices where all symbols are regular. 2017-05-03 11:15:54 -04:00
Rob Rix
a96596b01c Update the tests. 2017-05-03 10:56:01 -04:00
Rob Rix
927ec1b2dc 🔥 stateTypes. 2017-05-03 10:55:52 -04:00
Rob Rix
acb8e7d693 Drop non-Regular symbols. 2017-05-03 10:50:36 -04:00
Rob Rix
4c5a5b56c6 🔥 withTokens. 2017-05-03 10:50:22 -04:00
Rob Rix
2a841a672b Don’t drop anonymous nodes for choices including anonymous symbols. 2017-05-03 10:50:11 -04:00
Rob Rix
56aee672a9 Merge branch 'master' into opt-in-anonymous-nodes 2017-05-03 10:41:36 -04:00
Rob Rix
1893d61eda Assign a += b assignments as a = a + b. 2017-05-03 10:37:29 -04:00
Rob Rix
080f30c704 Test that withTokens preserves anonymous nodes. 2017-05-03 10:13:40 -04:00
Rob Rix
33cdb49619 Define a combinator to assign without dropping token nodes. 2017-05-03 10:13:23 -04:00
Rob Rix
ad642922ec Test that anonymous nodes are not dropped after matching. 2017-05-03 10:09:31 -04:00
Rob Rix
80c3072508 Test that anonymous nodes are dropped at the start of input. 2017-05-03 10:07:53 -04:00
Rob Rix
ab1e7ac9e0 Give a list of symbol types to consider. 2017-05-03 10:03:02 -04:00
Rob Rix
7e0f13fc63 Bind the initial state to clarify the intent of the test. 2017-05-03 09:42:57 -04:00
Rob Rix
7ae74cdacc Use makeState to tidy up an expectation. 2017-05-03 09:42:18 -04:00
Rob Rix
72de8792c4 Construct Source with OverloadedStrings. 2017-05-03 09:40:52 -04:00
Rob Rix
1c968e3aab Use makeState in the assignment spec. 2017-05-03 09:39:24 -04:00
Rob Rix
bfd55c49c9 Correct a test. 2017-05-03 09:39:19 -04:00
Rob Rix
3ff041adcd Define a helper to construct starting states. 2017-05-03 09:36:35 -04:00
Rob Rix
ae9fc6ea4f Add a section header for the instances. 2017-05-03 09:35:51 -04:00
Rob Rix
14c12b3582 📝s. 2017-05-02 15:21:29 -04:00
Rob Rix
38b1775ee7 Merge pull request #1096 from github/ruby-control-flow-a-la-carte
Ruby control flow à la carte
2017-05-02 15:17:50 -04:00
Rob Rix
294af6e407 Merge branch 'master' into ruby-control-flow-a-la-carte 2017-05-02 15:07:01 -04:00
Rob Rix
cefd3e0a6a Rename go to ifElsif. 2017-05-02 15:03:30 -04:00
Rob Rix
8a506e5efa Define a convenience for parsing straight to a term, logging errors. 2017-05-02 14:55:05 -04:00
Rob Rix
496c009379 Don’t pass the source through. 2017-05-02 14:53:07 -04:00
Rob Rix
53823c2718 Merge pull request #1094 from github/better-error-reporting-for-repetitions
Better error reporting for repetitions
2017-05-02 14:37:58 -04:00
Rob Rix
73d1b83737 Rename assignAll to assign, taking a single root node. 2017-05-02 12:07:24 -04:00
Rob Rix
dd2ee0a669 Use the leaf helper to assign symbols. 2017-05-02 11:33:51 -04:00
Rob Rix
137b26d203 Define addition expression syntax. 2017-05-02 11:31:37 -04:00
Rob Rix
2246580687 Define assignment syntax. 2017-05-02 11:26:02 -04:00
Rob Rix
492b8e895e 🔥 redundant parens. 2017-05-02 11:25:48 -04:00
Rob Rix
40b0ff3a7b Derive an IsString instance for Source. 2017-05-02 09:37:02 -04:00
Rob Rix
5ddd0995d0 Sort imports. 2017-05-02 09:35:42 -04:00
Rob Rix
0b96eb7c0f Assign symbol literals. 2017-05-01 17:22:35 -04:00
Rob Rix
d025774908 Rename the SymbolLiteral constructor to Symbol. 2017-05-01 17:20:36 -04:00
Rob Rix
19c0abc218 Move the control flow modifiers into the normal variations. 2017-05-01 17:15:25 -04:00
Rob Rix
0519f658ea Note some more literals. 2017-05-01 17:07:51 -04:00
Rob Rix
366a77ade4 Note a potential direction for numeric literals. 2017-05-01 17:06:38 -04:00