1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 08:25:19 +03:00
Commit Graph

11379 Commits

Author SHA1 Message Date
Rob Rix
0a6612d504 roll parseNodeForTermF into parseRoot. 2017-03-31 19:35:16 -04:00
Rob Rix
3b37f6f2b8 Fold buildParseNodes back into parseRoot. 2017-03-31 19:29:48 -04:00
Rob Rix
3484b04960 Replace parseRoot’s algebra with a constructor for the recursive structure. 2017-03-31 19:25:28 -04:00
Rob Rix
c18e332e28 ParseNode is a leaf in a list and a rose tree. 2017-03-31 19:15:20 -04:00
Rob Rix
9d7ee81064 Base, Recursive, and Corecursive instances for Rose. 2017-03-31 19:14:42 -04:00
Rob Rix
2477035b9d Define a Rose tree type. 2017-03-31 19:13:03 -04:00
Rob Rix
c0578deeca Extract a parseRoot function out of parseIndex and parseTree. 2017-03-31 18:02:10 -04:00
Rob Rix
9c83be8b99 Application instead of composition. 2017-03-31 17:51:24 -04:00
Rob Rix
90a2f97d47 Tidy up the buildParseNodes signature with RAlgebra. 2017-03-31 17:47:48 -04:00
Rob Rix
2d830b57bb Pull the for out of buildParseNodes. 2017-03-31 17:44:50 -04:00
Rob Rix
d172d9440f Use an R-algebra type synonym to tidy up the type signatures.
🎩 @patrickt.
2017-03-31 17:17:15 -04:00
Rob Rix
a0995343a3 Define a command to render a diff. 2017-03-31 17:03:17 -04:00
Rob Rix
70b5505852 Define an alternative evaluator producing the output type. 2017-03-31 16:54:55 -04:00
Rob Rix
bbe8d05e71 Export DiffRenderer and runDiffRenderer. 2017-03-31 16:50:13 -04:00
Rob Rix
0c6c57d3b3 Evaluate DiffRenderers. 2017-03-31 16:49:29 -04:00
Rob Rix
8dcc7703dc Constrain ToCRenderer appropriately. 2017-03-31 16:49:09 -04:00
Rob Rix
d612dccb8d 🔥 toSummaryKey. 2017-03-31 16:48:58 -04:00
Rob Rix
4c24cdf1ad 🔥 TOC’s dependency on Renderer. 2017-03-31 16:48:06 -04:00
Rob Rix
a9ca469ea7 TermRenderer has a fields type parameter. 2017-03-31 16:39:51 -04:00
Rob Rix
1cd5b2bfec Constrain the SummaryRenderer. 2017-03-31 16:39:40 -04:00
Rob Rix
b30c19e68b 🔥 JSON’s dependency on Renderer. 2017-03-31 16:37:16 -04:00
Rob Rix
45b34c7444 🔥 Summary’s dependency on Renderer. 2017-03-31 16:37:08 -04:00
Rob Rix
5ee44d4642 🔥 Patch’s dependency on Renderer. 2017-03-31 16:20:48 -04:00
Rob Rix
fd2b24b714 🔥 Split’s dependency on Renderer. 2017-03-31 16:17:20 -04:00
Rob Rix
30ab7102bb Constrain & parametricize SExpressionDiffRenderer & SExpressionTermRenderer appropriately. 2017-03-31 16:14:44 -04:00
Rob Rix
92092f6136 SExpression does not import Renderer. 2017-03-31 16:12:26 -04:00
Rob Rix
1d360e6534 Define DiffRenderer and TermRenderer types. 2017-03-31 16:08:39 -04:00
Rob Rix
b7a1cf11ea Reformat the Renderer exports list. 2017-03-31 15:55:57 -04:00
Rob Rix
b95fae682d Read all files when no specific files are requested. 2017-03-31 15:53:49 -04:00
Rob Rix
2d5afab020 Run the Diff command. 2017-03-31 15:45:33 -04:00
Rob Rix
8120a40c3e Define a helper function testing whether a blob is null. 2017-03-31 15:38:20 -04:00
Rob Rix
cac2e64d29 Define a Diff command. 2017-03-31 15:33:24 -04:00
Rob Rix
a51706f8df 🔥 the todo item for parsing. 2017-03-31 15:29:44 -04:00
Rob Rix
aa7d37f49b Add a section header for evaluation. 2017-03-31 15:29:15 -04:00
Rob Rix
5b755aa355 Use the DefaultFields synonym everywhere. 2017-03-31 15:22:26 -04:00
Rob Rix
5ff9c1fe6a Define a type synonym for the set of default fields. 2017-03-31 15:19:52 -04:00
Rob Rix
f52894d2e8 Rename DefaultFields to HasDefaultFields. 2017-03-31 15:18:27 -04:00
Rob Rix
46fe5ed705 Move DefaultFields into Info.hs. 2017-03-31 15:17:43 -04:00
Rob Rix
00de3a3ba2 Swap the order of arguments to match parserForLanguage. 2017-03-31 15:13:26 -04:00
Rob Rix
33d6020f9c Run the parser. 2017-03-31 15:12:56 -04:00
Rob Rix
a042055271 Scope the where clause to the ReadFilesAtSHAs command. 2017-03-31 15:11:27 -04:00
Rob Rix
b136eeca50 Define a Parse command. 2017-03-31 15:10:16 -04:00
Rob Rix
d2650ab4f0 Split parserForLanguage out of parserForType. 2017-03-31 14:40:11 -04:00
Rob Rix
7544edf932 🔥 a bunch of Languages we don’t parse (yet). 2017-03-31 14:39:52 -04:00
Rob Rix
782e172b34 Comment out blobsForSha for now. 2017-03-31 14:32:06 -04:00
Rob Rix
0772b64510 Yield inside the withRepository block. 2017-03-31 14:31:50 -04:00
Rob Rix
f2a699edfd Add a ReadFilesAtSHAs instruction. 2017-03-31 14:28:36 -04:00
Rob Rix
f0c288ab43 We don’t need to runReaderT inside the ReaderT. 2017-03-31 14:28:23 -04:00
Rob Rix
8647329cc7 Define an interpreter for Commands. 2017-03-31 12:58:27 -04:00
Rob Rix
cd8e082e6c Define a Command type. 2017-03-31 12:58:17 -04:00