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

14707 Commits

Author SHA1 Message Date
Rob Rix
9e3e9736ed 🔥 a redundant do. 2017-08-08 09:16:03 -04:00
Rob Rix
1e7ca7de13 Constrain the types rather than the Unions. 2017-08-08 09:11:27 -04:00
Rob Rix
ff9e58c95f Derive a Bounded instance. 2017-08-08 08:43:49 -04:00
Rob Rix
8eea6810ee Dedent the State record selector docs. 2017-08-07 17:53:16 -04:00
Rob Rix
0b00fa2c52 Return to using an IntMap for choices. 2017-08-07 17:44:51 -04:00
Rob Rix
e32644ea46 eta-reduce makeError. 2017-08-07 17:20:35 -04:00
Rob Rix
b483c66e17 🔥 redundant parens. 2017-08-07 17:20:27 -04:00
Rob Rix
8522dbec99 🔥 the unused StandaloneDeriving pragma. 2017-08-07 17:20:21 -04:00
Rob Rix
45f0eb7900 Only fetch the populated indices. 2017-08-07 12:51:31 -04:00
Rob Rix
51cc0e00c9 Use parseError in JSON, Python, & Ruby. 2017-08-07 12:38:45 -04:00
Rob Rix
9ec1f2f029 Reintroduce a parseError combinator. 2017-08-07 12:35:09 -04:00
Rob Rix
252290d36c Back error-handling out of the grammars. 2017-08-07 12:17:53 -04:00
Rob Rix
9530b95a37 🔥 the state in error results. 2017-08-07 12:15:02 -04:00
Rob Rix
71fb6c96fe Merge branch 'master' into delimited-control 2017-08-07 12:06:51 -04:00
Rob Rix
d590565c49 Merge branch 'master' into delimited-control 2017-08-07 12:05:15 -04:00
Rob Rix
2e998f2d57 Merge pull request #1280 from github/faster-union-instance-compilation
Faster Union instance compilation
2017-08-07 12:01:05 -04:00
Rob Rix
87abdf2556 Constrain the types in the Union rather than the Union itself. 2017-08-07 11:21:22 -04:00
Rob Rix
1e335a71b0 Merge branch 'master' into faster-union-instance-compilation 2017-08-07 11:17:10 -04:00
Rob Rix
6405e40177 Bump effects to master.
https://github.com/joshvera/effects/pull/10 has been merged.
2017-08-07 11:16:53 -04:00
Rob Rix
f6ff15290a Merge pull request #1281 from github/kivikakk/exts
Parse extensions
2017-08-07 09:48:15 -04:00
Yuki Izumi
882c35649e Add table syntax elements 2017-08-07 13:49:21 +10:00
Rob Rix
8faf9f60be Correct the tests. 2017-08-06 19:40:45 -04:00
Rob Rix
6c1e9afbb0 Errors hold Spans now. 2017-08-06 19:32:38 -04:00
Rob Rix
1ab9a13c6d Ignore the state in the error callback spec. 2017-08-06 19:31:44 -04:00
Rob Rix
5129bc5418 We don’t need to qualify these. 2017-08-06 19:31:15 -04:00
Rob Rix
65a134f3c8 Derive Ord & Ix instances for the specs’ Grammar type. 2017-08-06 19:29:43 -04:00
Rob Rix
1635baf667 Drop anonymous nodes before catches whose bodies would drop anonymous nodes.
This prevents handlers capturing tokens that would otherwise have been skipped altogether.
2017-08-06 18:56:04 -04:00
Rob Rix
de18f9c860 Don’t freeze composite call stacks. 2017-08-06 18:56:04 -04:00
Rob Rix
94c08a0f54 Simplify makeFunctionDeclaration. 2017-08-06 18:56:04 -04:00
Rob Rix
574d524581 Reformat functionDefinition. 2017-08-06 18:56:03 -04:00
Rob Rix
c69ed83235 Define functionDefinition without binds. 2017-08-06 18:56:03 -04:00
Rob Rix
215e1a7ac2 Simpler freezing of the call stack in choice construction. 2017-08-06 18:56:03 -04:00
Rob Rix
e45eb2e93d Simpler freezing of the call stack. 2017-08-06 18:56:03 -04:00
Rob Rix
9d044c51f7 Freeze the call stack in unError. 2017-08-06 18:56:03 -04:00
Rob Rix
367c16a0cd Use the error syntax constructor in Task. 2017-08-06 18:56:03 -04:00
Rob Rix
27c97a413c Produce error syntax using the helper. 2017-08-06 18:56:03 -04:00
Rob Rix
6edb85c156 Generalize errorSyntax to take the list of children. 2017-08-06 18:56:03 -04:00
Rob Rix
16dc1b62a7 Define an errorSyntax helper constructor. 2017-08-06 18:56:03 -04:00
Rob Rix
0d08387684 Rephrase end of input nodes as end of branch. 2017-08-06 18:56:03 -04:00
Rob Rix
d5526db5f9 Colourize the actual position/symbol. 2017-08-06 18:56:03 -04:00
Rob Rix
b40e13a296 Colourize the expected symbols. 2017-08-06 18:56:03 -04:00
Rob Rix
08a6c987c0 Pass the colourize flag to showExpectation & showSymbols. 2017-08-06 18:56:03 -04:00
Rob Rix
2ca0450737 Use the same Colourize type synonym for withSGRCode. 2017-08-06 18:56:03 -04:00
Rob Rix
e74c98f9cc Don’t colourize the whole expectation. 2017-08-06 18:56:03 -04:00
Rob Rix
d9a490381b Freeze the call stacks. 2017-08-06 18:56:03 -04:00
Rob Rix
89e0ef3daf Use the best call stack for uncommitted choices. 2017-08-06 18:56:02 -04:00
Rob Rix
1151fce874 Briefer definition of bestCallStack. 2017-08-06 18:56:02 -04:00
Rob Rix
96d473f8f4 Select a callstack to associate with committed choices. 2017-08-06 18:56:02 -04:00
Rob Rix
9579bc8aaa Spacing. 2017-08-06 18:56:02 -04:00
Rob Rix
fbb217f8e7 Add call stacks to Syntax.Error. 2017-08-06 18:56:02 -04:00