1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
Commit Graph

12237 Commits

Author SHA1 Message Date
Rob Rix
285fb8f3a7 🔥 the unused ToJSON instances for Category and Range. 2017-04-28 09:25:12 -04:00
Rob Rix
a14b241a35 Merge pull request #1089 from github/committed-choice
Committed choice
2017-04-27 20:03:24 -04:00
Rob Rix
026f855f0b Move indexing out of the JSON renderer. 2017-04-27 19:42:55 -04:00
Rob Rix
4334e24aa4 Replace the indexing renderer with an indexing operation. 2017-04-27 19:40:54 -04:00
Rob Rix
6ed683f9be 🔥 jsonParseTree. 2017-04-27 19:38:18 -04:00
Rob Rix
4975dc61fe Move decoration of terms out of the JSON renderer. 2017-04-27 19:36:35 -04:00
Rob Rix
013d998ef3 Extract a common handler for path-annotated rendering. 2017-04-27 19:27:03 -04:00
Rob Rix
66d611b460 Handle debug rendering for indices. 2017-04-27 19:24:41 -04:00
Rob Rix
c014c75b0e Handle debug rendering for parse trees. 2017-04-27 19:23:31 -04:00
Rob Rix
9944b32d9f Define a ToJSONFields instance for SourceText. 2017-04-27 19:22:22 -04:00
Rob Rix
59735e5dac Don’t pass the debug flags to the renderers. 2017-04-27 19:13:18 -04:00
Rob Rix
5267ff4bb5 🔥 redundant parens. 2017-04-27 19:13:06 -04:00
Rob Rix
4394c2e833 🔥 the ToJSON instances for Data.Record. 2017-04-27 18:56:53 -04:00
Rob Rix
63b30ac1a3 Render parse trees/indices’ records to JSON. 2017-04-27 18:56:41 -04:00
Rob Rix
862fb3654b Define a ToJSONFields instance for SourceSpan. 2017-04-27 18:51:41 -04:00
Rob Rix
70dd381f26 Simplify the ToJSONFields instance for Syntax. 2017-04-27 18:28:52 -04:00
Rob Rix
fed06ff0e1 Define ToJSONFields instances for Free & FreeF. 2017-04-27 18:23:10 -04:00
Rob Rix
3bf4f63e0c Define a ToJSONFields instance for CofreeF. 2017-04-27 18:17:05 -04:00
Rob Rix
607d4f0398 Define a ToJSONFields instance for SplitPatch. 2017-04-27 18:10:31 -04:00
Rob Rix
1520fb0c2b Replace syntaxToTermField with a ToJSONFields instance. 2017-04-27 18:10:12 -04:00
Rob Rix
43a5580bf5 Define a ToJSONFields instance for Terms. 2017-04-27 18:05:08 -04:00
Rob Rix
5afd5b8fa6 Distribute ToJSONFields through Maybe. 2017-04-27 17:56:24 -04:00
Rob Rix
5beff62cbc Define ToJSONFields instances for Range and Category. 2017-04-27 17:53:36 -04:00
Rob Rix
adf868e5c8 Add a class to produce JSON fields for a type. 2017-04-27 17:49:37 -04:00
Rob Rix
17d413d267 Get all the fields uniformly. 2017-04-27 16:58:39 -04:00
Rob Rix
a5a86b33ea Don’t pass the syntax around. 2017-04-27 16:58:13 -04:00
Rob Rix
96d2ccf92e Decorate the term with the identifier algebraically. 2017-04-27 16:57:47 -04:00
Rob Rix
4abace2490 🔥 an unnecessary Functor constraint. 2017-04-27 16:47:08 -04:00
Rob Rix
f0b89c508c 🔥 parseDecorator. 2017-04-27 16:21:06 -04:00
Rob Rix
9dac0260e3 🔥 Identifier. 2017-04-27 16:18:11 -04:00
Rob Rix
d1b088eda5 Work around the lack of Show1 for IntMap in lts. 2017-04-26 18:39:39 -04:00
Rob Rix
d6b7e408e3 Don’t add a newline after the caret. 2017-04-26 15:27:30 -04:00
Rob Rix
f991988eea Show the source of errors. 2017-04-26 14:54:29 -04:00
Rob Rix
d9d7f98921 Consolidate error reporting. 2017-04-26 14:37:07 -04:00
Rob Rix
dfab45dc65 Tidy up handling of Empty rules. 2017-04-26 13:50:45 -04:00
Rob Rix
59be638d70 🔥 the unlawful Monad instance for Result. 2017-04-26 13:40:03 -04:00
Rob Rix
52aa3800b7 Don’t use Result’s Monad instance for Children rules. 2017-04-26 13:39:42 -04:00
Rob Rix
d2da6e1ad7 Move the Alt rule down to reflect constructor order. 2017-04-26 13:37:48 -04:00
Rob Rix
89b30a5124 Pull the Choose case up a level. 2017-04-26 13:36:57 -04:00
Rob Rix
095e279380 Pull the Children case up a level. 2017-04-26 13:35:21 -04:00
Rob Rix
a6b5fa0634 Pull the Source case up a level. 2017-04-26 13:33:52 -04:00
Rob Rix
f781118abb Move the location at end case up. 2017-04-26 13:32:24 -04:00
Rob Rix
2db005505e Pull the Location case up a level. 2017-04-26 13:31:26 -04:00
Rob Rix
3de156447f Match against the nodes. 2017-04-26 13:30:07 -04:00
Rob Rix
e9bff3be5a Use the where clause’s binding for the source. 2017-04-26 13:28:34 -04:00
Rob Rix
4103936ca2 Use the where clause’s binding for the offset. 2017-04-26 13:28:04 -04:00
Rob Rix
b392c9d6b7 Bind the post-drop state in the where clause. 2017-04-26 13:24:04 -04:00
Rob Rix
a430b444f5 Pull the runAssignment iterator into the where clause. 2017-04-26 13:23:07 -04:00
Rob Rix
e67f5a9398 Guard terms with symbols. 2017-04-26 13:19:10 -04:00
Rob Rix
296717777d Rearrange leaf to put the fmap first. 2017-04-26 13:18:40 -04:00