1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00
Commit Graph

13282 Commits

Author SHA1 Message Date
Rob Rix
ee9123baa8 Nothing is a perfectly cromulent language. 2017-05-30 11:05:06 -04:00
Rob Rix
5f0b620152 Merge branch 'master' into abstract-rendering-over-the-syntax-functor 2017-05-30 10:46:03 -04:00
Rob Rix
77e6e8cda7 Merge pull request #1135 from github/bounds-checked-reverse-RWS-matching
Bounds-checked reverse RWS matching
2017-05-30 10:45:05 -04:00
Rob Rix
2c8bb24343 Test that diffAndRenderTermPair produces Nothing when both blobs are missing. 2017-05-30 10:33:59 -04:00
Rob Rix
8744bd0072 Correct SemanticSpec. 2017-05-30 10:33:48 -04:00
Rob Rix
a8fb1817d0 Define an identity renderer for terms, for the tests. 2017-05-30 10:32:25 -04:00
Rob Rix
f95dd4215d Correct TOCSpec. 2017-05-30 10:29:37 -04:00
Rob Rix
9b4d70bb2d Define an IdentityDiffRenderer for the tests. 2017-05-30 10:26:20 -04:00
Rob Rix
1475646281 Derive an Eq instance for Summaries. 2017-05-30 10:25:45 -04:00
Rob Rix
25b89ada33 Update CommandSpec & SpecHelpers for Maybe returns. 2017-05-30 10:25:22 -04:00
Rob Rix
f360b25d16 Defer the Monoid handling by returning in Maybe. 2017-05-30 10:22:37 -04:00
Rob Rix
aeb2942070 🔥 a redundant import. 2017-05-30 10:13:30 -04:00
Rob Rix
cef554a91b 🔥 SourceText. 2017-05-30 10:11:08 -04:00
Rob Rix
2aa7862cfc Sort the imports. 2017-05-30 10:08:17 -04:00
Rob Rix
a2a1c596d8 🔥 SourceTermRenderer. 2017-05-30 10:06:23 -04:00
Rob Rix
6da32d8749 Correct CommandSpec. 2017-05-30 09:58:16 -04:00
Rob Rix
fc7906e97e Use the Semantic tasks in the specs. 2017-05-30 09:14:50 -04:00
Rob Rix
37c6d041f6 📝 the Semantic tasks. 2017-05-30 09:07:43 -04:00
Rob Rix
7e04ff1136 🔥 an errant space. 2017-05-29 17:50:07 -04:00
Rob Rix
dd4c97e52f 🔥 redundant imports. 2017-05-29 17:39:43 -04:00
Rob Rix
b897adf1bd Simplify parseAndRenderBlob by inverting the pattern matches. 2017-05-29 17:36:09 -04:00
Rob Rix
ed555c8be4 Decorate Tasks take R-algebras. 2017-05-29 17:25:37 -04:00
Rob Rix
c635c5de15 Revert "Define decorator parsers."
This reverts commit 34e6dc184e229d5c3e61964aabf5abee1f966830.
2017-05-29 17:17:59 -04:00
Rob Rix
c473801031 Define a StringConv instance for Source -> ByteString. 2017-05-29 17:16:15 -04:00
Rob Rix
04f13e7e2b Define a Source term renderer. 2017-05-29 17:14:46 -04:00
Rob Rix
228f79ac57 Move DiffRenderer and TermRenderer into Renderer. 2017-05-29 17:12:05 -04:00
Rob Rix
e11b91e0bb Don’t qualify the s-expression diff renderer. 2017-05-29 17:11:53 -04:00
Rob Rix
03028f8eb5 Don’t qualify Task in Arguments. 2017-05-29 17:09:40 -04:00
Rob Rix
1668299437 Distribute the fold map in SemanticCmdLine. 2017-05-29 17:03:53 -04:00
Rob Rix
216a6473d9 🔥 Renderer & runRenderer. 2017-05-29 17:02:05 -04:00
Rob Rix
852dcb4324 🔥 the non-Task code paths. 2017-05-29 16:59:38 -04:00
Rob Rix
763d923d2a Define the term/diff rendering tasks in terms of the rendering functions. 2017-05-29 16:58:37 -04:00
Rob Rix
1c9f764993 Re-export the renderers. 2017-05-29 16:58:01 -04:00
Rob Rix
a2be3a69b6 Rename the ToC renderer. 2017-05-29 16:55:49 -04:00
Rob Rix
6d2992250b Rename the JSON renderer. 2017-05-29 16:55:10 -04:00
Rob Rix
4f35f16883 Rename the patch renderer & move File into its module. 2017-05-29 16:54:13 -04:00
Rob Rix
7610ae675b Rename the s-expression renderer functions. 2017-05-29 16:51:32 -04:00
Rob Rix
77ac9b02c3 🔥 NamedDecorator. 2017-05-29 16:43:52 -04:00
Rob Rix
7ea780f42d Decorate parse trees based on the renderer alone. 2017-05-29 16:43:34 -04:00
Rob Rix
f879218dd2 Perform diffing in Task. 2017-05-29 16:37:46 -04:00
Rob Rix
f75af6bd26 Export diffAndRenderTermPair. 2017-05-29 16:29:07 -04:00
Rob Rix
d6869041a4 Rename diffAndRender to diffAndRenderTermPair. 2017-05-29 16:28:58 -04:00
Rob Rix
b2a7efe8b5 Generalize diffAndRender over the SourceBlobs, and extract it to the top level. 2017-05-29 16:26:40 -04:00
Rob Rix
9c5a866835 Generalize diffAndRender over the diffing function. 2017-05-29 16:25:14 -04:00
Rob Rix
940f1ec147 Handle ToC output in Task. 2017-05-29 16:23:02 -04:00
Rob Rix
3bdc113a57 Pick the decorator for the renderer. 2017-05-29 16:22:48 -04:00
Rob Rix
b15c561800 Render diffs to patch format in Task. 2017-05-29 15:57:41 -04:00
Rob Rix
71666d349b Patch rendering is performed in ByteString. 2017-05-29 15:54:26 -04:00
Rob Rix
c498f99d5b Use the distributed foldMap combinator for both parse tree & diff tasks. 2017-05-29 15:45:18 -04:00
Rob Rix
e7890fe71a Define a distributed foldMap over Tasks. 2017-05-29 15:44:22 -04:00