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

13094 Commits

Author SHA1 Message Date
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
Rob Rix
5877e39c12 Define distributeFor in terms of distribute. 2017-05-29 15:43:10 -04:00
Rob Rix
a58529999e Handle empty blobs in parseDiffAndRenderBlobPair. 2017-05-29 15:35:15 -04:00
Rob Rix
290d8c24d7 Define a helper to distribute the parsing, diffing, & rendering of a traversable sequence of blob pairs. 2017-05-29 15:24:19 -04:00
Rob Rix
a2675ea7aa Export the single-blob parse-and-render task. 2017-05-29 15:23:37 -04:00
Rob Rix
0b4117b183 Rename parseDiffAndRenderBlobs to parseDiffAndRenderBlobPair. 2017-05-29 15:22:52 -04:00
Rob Rix
1594470086 Parse via the Task API. 2017-05-29 15:18:35 -04:00
Rob Rix
9335b996ac Derive Eq & Show instances for DiffRenderer and TermRenderer. 2017-05-29 15:17:34 -04:00
Rob Rix
82d6288a52 Derive Eq & Show instances for NamedRenderer. 2017-05-29 15:16:22 -04:00
Rob Rix
9a9fe5f475 Task holds its renderer as a function. 2017-05-29 15:01:20 -04:00
Rob Rix
297348e95f Split term/diff renderers back up. 2017-05-29 14:56:06 -04:00
Rob Rix
a727203a3f Move parseDiffAndRenderBlobs into Semantic. 2017-05-29 14:52:04 -04:00
Rob Rix
87e87ec54e Spacing. 2017-05-29 14:51:55 -04:00
Rob Rix
b3fb50383e Move parseAndRenderBlob into Semantic. 2017-05-29 14:50:13 -04:00
Rob Rix
63d32884a7 Define a high-level task to parse and render a traversable container of blobs. 2017-05-29 14:49:17 -04:00
Rob Rix
ec74497030 Export NamedDecorator and NamedRenderer. 2017-05-29 14:44:00 -04:00
Rob Rix
ac5cc1694a Define a named s-expression renderer. 2017-05-29 14:41:38 -04:00
Rob Rix
f75f5da7a4 🔥 redundant parens. 2017-05-29 14:36:34 -04:00
Rob Rix
8b05610e52 🔥 the redundant SourceSpan constraints on s-expression rendering. 2017-05-29 14:18:10 -04:00
Rob Rix
2e1146f40a Parse, diff, and render blobs using Task. 2017-05-29 13:59:11 -04:00
Rob Rix
cba2972731 Define a for-like convenience for distributing tasks. 2017-05-29 13:54:43 -04:00
Rob Rix
087f84a22a Define a Task for diffing terms. 2017-05-29 13:32:23 -04:00
Rob Rix
2b9ab0be58 Distributing tasks concurrently does not imply folding their results. 2017-05-29 13:25:58 -04:00
Rob Rix
341d7f0957 Add an explicit export list to Semantic.Task. 2017-05-29 13:19:39 -04:00
Rob Rix
8cae75e743 Switch on the decorator for à la carte assignment. 2017-05-29 13:18:12 -04:00
Rob Rix
f0354b8a6c Define the identity decorator for SyntaxTerms. 2017-05-29 13:17:24 -04:00
Rob Rix
e13f72fc85 Decorate SyntaxTerms with identifiers where requested. 2017-05-29 13:14:51 -04:00
Rob Rix
859ef1917e Move Task & friends into their own module. 2017-05-29 13:13:36 -04:00
Rob Rix
08fea4f15c Stub in a module for Task. 2017-05-29 13:11:17 -04:00
Rob Rix
9cd20d8fb1 Handle the other languages. 2017-05-29 13:05:33 -04:00
Rob Rix
43d8c47798 Parse and render TypeScript as well as Python. 2017-05-29 13:04:53 -04:00
Rob Rix
6f0b76d389 Move the parse task inside the language case. 2017-05-29 13:00:52 -04:00
Rob Rix
c9e3345d06 Spacing. 2017-05-29 12:55:49 -04:00
Rob Rix
da483b4c00 Add a Task primitive to distribute a list of Tasks over multiple cores. 2017-05-29 12:55:14 -04:00
Rob Rix
87adbd2897 Define an eliminator for Tasks. 2017-05-29 12:42:41 -04:00
Rob Rix
14929df4ab 🔥 a redundant Monoid constraint. 2017-05-29 12:42:21 -04:00
Rob Rix
d6f59eda1b 🔥 the Monoid constraint. 2017-05-29 12:40:25 -04:00
Rob Rix
8231d6d715 Define a function producing a Task for parsing, decorating, & rendering a blob 2017-05-29 12:35:23 -04:00
Rob Rix
9eb3ad93ff Stub in a datatype of named renderers. 2017-05-29 12:35:00 -04:00