1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
Commit Graph

11608 Commits

Author SHA1 Message Date
Rob Rix
72ad4e027e Generalize the ast helper over the grammar type. 2017-04-07 21:26:02 -04:00
Rob Rix
755b448ac5 Show assignments after effects. 2017-04-07 18:31:37 -04:00
Rob Rix
b4847b0a1c Class scope can have multiple independent entries. 2017-04-07 16:42:15 -04:00
Rob Rix
f73542ea8e Define a Show1 instance for AssignmentF. 2017-04-07 16:42:09 -04:00
Rob Rix
22c9fb404d Show data constructors. 2017-04-07 16:39:33 -04:00
Rob Rix
cc5ba7674f Clarify Union’s Show1 instance. 2017-04-07 16:34:56 -04:00
Rob Rix
e3140636b7 Don’t export AssignmentF or its constructors. 2017-04-07 15:00:44 -04:00
Rob Rix
a43ff988ae Test that rule assignment does not advance the cursor. 2017-04-07 14:59:13 -04:00
Rob Rix
79454112c5 Test that content assignment advances the cursor. 2017-04-07 14:57:44 -04:00
Rob Rix
c2a2b0b32b Test that content assignment produces nodes’ content. 2017-04-07 14:57:00 -04:00
Rob Rix
0cc5c84706 Move the rule assignment tests down. 2017-04-07 14:50:57 -04:00
Rob Rix
f082473b4f Rename the test for rule assignments. 2017-04-07 14:48:02 -04:00
Rob Rix
df130daceb Group the Applicative tests together. 2017-04-07 14:47:31 -04:00
Rob Rix
806d4a702f Group the Alternative tests together. 2017-04-07 14:47:23 -04:00
Rob Rix
71c5372d17 Test that children assignment fails if the subrule fails. 2017-04-07 14:43:53 -04:00
Rob Rix
b2da4ca89a Test that children assignments match if their subrule matches. 2017-04-07 14:42:25 -04:00
Rob Rix
dfb5cff0dc Test that children advances the cursor. 2017-04-07 14:39:13 -04:00
Rob Rix
03ea4a55fc Correct the test assignments. 2017-04-07 14:37:22 -04:00
Rob Rix
cec63c69aa Pull the Ruby rules out to the top level. 2017-04-07 14:29:48 -04:00
Rob Rix
1df2c979ec Define a function to run the assignment for all the nodes. 2017-04-07 14:26:51 -04:00
Rob Rix
7453872869 Reformat the method rule a little. 2017-04-07 14:18:31 -04:00
Rob Rix
1d75bda845 Correct the method rule. 2017-04-07 14:16:58 -04:00
Rob Rix
b2cacf0d81 Reformat the rules a little. 2017-04-07 14:16:37 -04:00
Rob Rix
20f4f30ae9 🔥 a bunch of unnecessary type signatures. 2017-04-07 14:10:43 -04:00
Rob Rix
f5f080f1dd Correct the 📝 for rule. 2017-04-07 14:08:59 -04:00
Rob Rix
401ecdbe78 Rule assignment is used in normal applicative form. 2017-04-07 14:04:56 -04:00
Rob Rix
c27af0034e Rename stepAssignment to runAssignment. 2017-04-07 13:31:26 -04:00
Rob Rix
6534948186 Correct the 📝 for stepAssignment. 2017-04-07 13:29:29 -04:00
Rob Rix
8e0fa11fff Merge branch 'master' into syntax-a-la-carte 2017-04-07 12:41:12 -04:00
Rob Rix
73a214480c Merge pull request #1067 from github/command-dsl
Command DSL
2017-04-07 12:38:14 -04:00
Rob Rix
3a87919d22 Simplify the tests. 2017-04-07 12:36:14 -04:00
Rob Rix
00b3106933 Combine output stats for all specs 2017-04-07 12:24:57 -04:00
Rob Rix
76240b1d67 Refocus the existing assignment specs. 2017-04-07 12:21:45 -04:00
Rob Rix
979a42e1d4 Move Assignment into its own module. 2017-04-07 11:57:11 -04:00
Rob Rix
efb43890f3 Stub in a module for syntax assignment. 2017-04-07 11:38:27 -04:00
Rob Rix
2d0b3ff4b1 Unique the list of paths. 2017-04-07 10:49:36 -04:00
Rob Rix
3c596fb980 Take the difference on full blob entries, not just their paths. 2017-04-07 10:47:56 -04:00
Rob Rix
1c908fff66 Merge branch 'master' into command-dsl 2017-04-07 10:08:54 -04:00
Timothy Clem
7099603df6 Only write trailing newline for json output 2017-04-07 10:07:02 -04:00
Rob Rix
09c54e19aa Merge branch 'syntax-a-la-carte' of https://github.com/github/semantic-diff into syntax-a-la-carte 2017-04-07 09:48:50 -04:00
Rob Rix
534b7779d7 Merge branch 'master' into syntax-a-la-carte 2017-04-07 09:48:45 -04:00
Rob Rix
38466c64e0 Test one-or-more repetition. 2017-04-07 09:48:21 -04:00
Rob Rix
ad0fa60a3e Placate hlint. 2017-04-07 09:45:23 -04:00
Rob Rix
73f3384de9 Rename Fail to Empty. 2017-04-07 09:44:31 -04:00
Rob Rix
d772a5c0aa Test repetitions. 2017-04-07 09:44:13 -04:00
Rob Rix
b8e4cb7471 Tidy up the nullability rules. 2017-04-07 09:44:02 -04:00
Rob Rix
9b69f3aae8 Define nullability for alternations. 2017-04-07 09:37:13 -04:00
Rob Rix
c44fb8a5c3 Generalize the fixture builder. 2017-04-07 09:16:57 -04:00
Rob Rix
2b460b223c Note the need for a nullability test. 2017-04-07 09:14:28 -04:00
Rob Rix
830c8f8c94 Use a helper to construct the expected AST values. 2017-04-07 09:14:03 -04:00