1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00
Commit Graph

14795 Commits

Author SHA1 Message Date
Rob Rix
889e8031a5 Revert "Define currentNode in terms of state."
This reverts commit 034449cadff61b15101f26ac9313e8dc4fc44432.
2017-08-16 12:50:35 -04:00
Rob Rix
098b9f8941 Revert "Define location in terms of state."
This reverts commit e90b5c5e0ddba4390ec6230357accf96f6211a1c.
2017-08-16 12:49:30 -04:00
Rob Rix
994d40cf23 Revert "Define advance in terms of state."
This reverts commit 7387c9ae3719f92bea2ac3b776561b099ee3e599.
2017-08-16 12:48:52 -04:00
Rob Rix
4daab99a09 Revert "Define eof in terms of state."
This reverts commit b71a285f23f1a7112173f03a2041bebaae637940.
2017-08-16 12:48:39 -04:00
Rob Rix
d861ff4329 Define eof in terms of state. 2017-08-16 12:38:31 -04:00
Rob Rix
1f36dc6136 Pull requireExhaustive out to the top level. 2017-08-16 12:36:32 -04:00
Rob Rix
b14ec8b99a Pull skipTokens out to the top level. 2017-08-16 12:35:56 -04:00
Rob Rix
35c69f6ba1 Rename dropAnonymous to skipTokens. 2017-08-16 12:35:44 -04:00
Rob Rix
b0f3d967c5 Use the AST synonym widely. 2017-08-16 12:26:41 -04:00
Rob Rix
a5812184b8 Tidy up Markdown with the AST synonym. 2017-08-16 12:24:47 -04:00
Rob Rix
6bbaa7a8e6 Parameterize the AST synonym by the functor. 2017-08-16 12:24:02 -04:00
Rob Rix
8d6d7535e8 Try to push alternation through equal states. 2017-08-16 12:23:00 -04:00
Rob Rix
4f46843e26 Push alternation through Get. 2017-08-16 12:20:42 -04:00
Rob Rix
9c198eb08a Define advance in terms of state. 2017-08-16 12:19:29 -04:00
Rob Rix
0ba1035755 Pull the advance state function out to the top level. 2017-08-16 12:18:40 -04:00
Rob Rix
a66bdfe1bb Define location in terms of state. 2017-08-16 12:13:55 -04:00
Rob Rix
496ee5a3c9 Assignment takes Cofree structures. 2017-08-16 12:07:53 -04:00
Rob Rix
ada798fcdb Define currentNode in terms of state. 2017-08-16 11:14:03 -04:00
Rob Rix
d1011231b9 State holds projected nodes. 2017-08-16 11:13:11 -04:00
Rob Rix
61281b8b65 Define nodeError using wildcards. 2017-08-16 10:55:33 -04:00
Rob Rix
56ae476d28 The projection function is rank-1. 2017-08-16 10:50:04 -04:00
Rob Rix
226d703baf Sort the imports. 2017-08-16 10:49:47 -04:00
Rob Rix
2b4efe8435 Rename project to currentNode. 2017-08-16 10:33:56 -04:00
Rob Rix
a8607ce41c Project rules return the current node. 2017-08-16 10:31:25 -04:00
Rob Rix
fb7791f852 Clean up Markdown assignments a little with token rules. 2017-08-16 10:30:25 -04:00
Rob Rix
039789d32a Repeated zero-width matches are ok. 2017-08-16 10:10:14 -04:00
Rob Rix
7863683d5e Define a MonadState instance for Assignment. 2017-08-16 10:04:36 -04:00
Rob Rix
68ae0309b6 Add context to decorated class/function definitions. 2017-08-16 09:18:11 -04:00
Rob Rix
85eac03a14 Merge branch 'systematic-comment-assignment' of https://github.com/github/semantic-diff into systematic-comment-assignment 2017-08-16 09:06:16 -04:00
Rob Rix
dd7f601149 Merge branch 'eof-drops-anonymous-nodes' into systematic-comment-assignment 2017-08-16 09:06:03 -04:00
Rob Rix
b52b0ee44a Merge branch 'master' into systematic-comment-assignment 2017-08-16 09:05:15 -04:00
Rob Rix
aec9eeb7b9 Merge branch 'master' into eof-drops-anonymous-nodes 2017-08-16 09:02:45 -04:00
Rob Rix
bc4f6004f1 Drop tokens before the end of branches. 2017-08-16 08:56:43 -04:00
Rob Rix
3c7f471607 Test that eof matches before anonymous nodes at the end of branches.
Currently failed.
2017-08-16 08:55:26 -04:00
Rob Rix
8265390933 Test that eof matches at the end of branches. 2017-08-16 08:52:29 -04:00
Rob Rix
eb73e8a75e Post-contextualize chained terms. 2017-08-15 16:26:30 -04:00
Rob Rix
00a9a6c672 Left-chain comparisons. 2017-08-15 16:23:34 -04:00
Rob Rix
00867f087f Merge pull request #1300 from github/frog-blast-the-licenses-dir
Treat the licenses dir as vendored.
2017-08-15 11:02:08 -04:00
Rob Rix
fffddcfde1 Treat the licenses dir as vendored. 2017-08-15 10:49:51 -04:00
Rob Rix
c0a410ba7e Merge branch 'master' into systematic-comment-assignment 2017-08-15 10:48:10 -04:00
Josh Vera
4f4afbd8b3 Merge pull request #1298 from github/🔥-insertion-deletion-fixtures
🔥 insertion/deletion fixtures
2017-08-15 10:37:29 -04:00
Josh Vera
933394fdde Merge branch 'master' into 🔥-insertion-deletion-fixtures 2017-08-15 10:18:18 -04:00
Rob Rix
e0053f2f50 Test the Python fixtures. 2017-08-15 10:05:49 -04:00
Rob Rix
fef11c61ba Update the Python fixtures. 2017-08-15 10:05:34 -04:00
Rob Rix
c04896abce Lambdas have empty names. 2017-08-15 10:00:54 -04:00
Rob Rix
3960c35b22 Add ±B yield fixtures. 2017-08-15 09:55:31 -04:00
Rob Rix
db902675d5 Correct the yield fixture. 2017-08-15 09:55:00 -04:00
Rob Rix
4c161b49bd Don’t assign identifiers for continue, pass, and break keywords. 2017-08-15 09:49:20 -04:00
Rob Rix
c221f30157 The corpus dir doesn’t exist any more. 2017-08-15 09:41:15 -04:00
Rob Rix
a6208039e5 Treat the new corpus & fixtures dirs as vendored. 2017-08-15 09:40:01 -04:00