Rob Rix
|
70c5179a6b
|
Merge branch 'master' into patch
|
2015-12-17 17:34:45 -05:00 |
|
Rob Rix
|
5b150a72ae
|
Render diffs as patches when --patch is used.
|
2015-12-17 17:23:06 -05:00 |
|
Rob Rix
|
10afe48d93
|
Add an argument to select patch output.
|
2015-12-17 17:19:13 -05:00 |
|
Rob Rix
|
e61140b10f
|
Add a Patch case to Renderer .
|
2015-12-17 17:19:05 -05:00 |
|
Rob Rix
|
87de49129b
|
Move the bridge sources into src/.
|
2015-12-17 13:05:53 -05:00 |
|
Rob Rix
|
96f189719a
|
Move TreeSitter into the library.
|
2015-12-17 12:54:27 -05:00 |
|
Rob Rix
|
be2d4f5d76
|
Denote a bunch of C productions as being fixed.
|
2015-12-16 18:22:25 -05:00 |
|
Rob Rix
|
5755c314fb
|
Bind the C language in the where clause.
|
2015-12-16 18:11:23 -05:00 |
|
Rob Rix
|
2ca8e7ca11
|
Reformat.
|
2015-12-16 18:10:39 -05:00 |
|
Rob Rix
|
136399bd66
|
Move fixedProductions into the language selection.
|
2015-12-16 18:10:13 -05:00 |
|
Rob Rix
|
4544d25974
|
Deparenthesize.
|
2015-12-16 18:09:32 -05:00 |
|
Rob Rix
|
86dfd83935
|
Swap the order of the language & constructor.
|
2015-12-16 18:08:51 -05:00 |
|
Rob Rix
|
a886a849f4
|
Move keyedProductions into the language selection.
|
2015-12-16 18:07:39 -05:00 |
|
Rob Rix
|
4898163d50
|
Move constructorForProductions into the library.
|
2015-12-16 16:27:03 -05:00 |
|
Rob Rix
|
3652773729
|
Move the Constructor type into the library.
|
2015-12-16 16:24:58 -05:00 |
|
Rob Rix
|
e47d3d4d3c
|
Move the Parser type back into the library.
|
2015-12-16 16:24:23 -05:00 |
|
Rob Rix
|
1504a985de
|
Rename Parser to Parsers.
|
2015-12-16 16:21:49 -05:00 |
|
Rob Rix
|
c6eb5f9722
|
Use the Constructor to build the terms.
|
2015-12-16 16:08:10 -05:00 |
|
Rob Rix
|
4c34d43691
|
Construct the Info inline.
|
2015-12-16 16:06:55 -05:00 |
|
Rob Rix
|
c2f37529b3
|
Pass the Constructor to documentToTerm.
|
2015-12-16 16:06:06 -05:00 |
|
Rob Rix
|
53046e4b0d
|
Select a Language for a given file name extension.
|
2015-12-16 16:05:24 -05:00 |
|
Rob Rix
|
0769c00d1d
|
Abstract a Language type.
|
2015-12-16 16:03:15 -05:00 |
|
Rob Rix
|
ec674a572a
|
Construct keyed nodes when appropriate.
|
2015-12-16 16:02:59 -05:00 |
|
Rob Rix
|
829e443af8
|
Use fixed nodes when appropriate.
|
2015-12-16 16:01:43 -05:00 |
|
Rob Rix
|
82c96e18eb
|
Default to indexed nodes.
|
2015-12-16 16:01:36 -05:00 |
|
Rob Rix
|
ffaa893b43
|
Rephrase constructorForProductions using a where clause.
|
2015-12-16 16:01:26 -05:00 |
|
Rob Rix
|
42850ef44e
|
Constructors take a list of production name/child pairs.
|
2015-12-16 15:59:07 -05:00 |
|
Rob Rix
|
8ace751fcf
|
Move the source string to Constructor.
|
2015-12-16 15:55:12 -05:00 |
|
Rob Rix
|
49fe2fc030
|
Stub in a function which builds a Constructor given sets of keyed & fixed production names & a source string.
|
2015-12-16 15:54:05 -05:00 |
|
Rob Rix
|
7c093e81da
|
Qualify the import of Data.Set.
|
2015-12-16 15:49:46 -05:00 |
|
Rob Rix
|
326a4c9709
|
Constructor s take Info instead of just the production name.
|
2015-12-16 15:45:30 -05:00 |
|
Rob Rix
|
c3d80962a1
|
Stub in the type of a constructor function.
|
2015-12-16 15:41:36 -05:00 |
|
Rob Rix
|
6270b4aa7e
|
Remove the Haskell module.
|
2015-12-16 15:36:08 -05:00 |
|
Rob Rix
|
36e7e49f72
|
Don’t attempt to parse Haskell sources.
|
2015-12-16 15:35:57 -05:00 |
|
Rob Rix
|
51098e2023
|
Pretend like we know what we’re doing & parse with Trifecta instead.
|
2015-12-16 11:48:09 -05:00 |
|
Rob Rix
|
3cae267d77
|
Add a function to parse into a leaf term.
We aren’t using the source positions yet because O(n) 😭 will have
to sort this out later.
|
2015-12-16 10:29:23 -05:00 |
|
Rob Rix
|
5628582923
|
Revert "Add a Token type."
This reverts commit 7207d11e233b9e83db1fdf5e396195b36f9f802a.
|
2015-12-16 09:54:03 -05:00 |
|
Rob Rix
|
a950eff438
|
Revert "Tokenize strings."
This reverts commit 306fc275f7e0bd3c1a760d079a65e3c50fca7bb0.
|
2015-12-16 09:53:08 -05:00 |
|
Rob Rix
|
432e83f5b4
|
Revert "Split token representations up a bit."
This reverts commit 3970c6497c3577c6151f7cf339451b0473580796.
|
2015-12-16 09:51:31 -05:00 |
|
Rob Rix
|
42c83c2ea7
|
Stub in a parser for module declarations.
|
2015-12-16 09:51:07 -05:00 |
|
Rob Rix
|
0552f2184e
|
Split token representations up a bit.
|
2015-12-16 09:50:40 -05:00 |
|
Rob Rix
|
751b4b749d
|
Make it slightly more obvious when an error has occurred.
|
2015-12-16 09:50:29 -05:00 |
|
Rob Rix
|
da793e21d5
|
Tokenize strings.
|
2015-12-16 09:41:46 -05:00 |
|
Rob Rix
|
40e9068ed8
|
Add a Token type.
|
2015-12-16 09:41:32 -05:00 |
|
Rob Rix
|
6ea78f4318
|
Merge branch 'output-directory' into haskell-parser
|
2015-12-16 01:58:18 -05:00 |
|
Rob Rix
|
cd460e4567
|
Pass it to optional to make it optional, apparently.
|
2015-12-16 01:53:18 -05:00 |
|
Rob Rix
|
d0c3650045
|
Split the lines.
|
2015-12-16 01:42:53 -05:00 |
|
Rob Rix
|
dcbba9bf1b
|
Replace the extension using the operator I guess?
|
2015-12-16 01:41:45 -05:00 |
|
Rob Rix
|
b26f16478f
|
Provide a default value for the option.
I’m not sure that this is the best way of doing this.
|
2015-12-16 01:37:05 -05:00 |
|
Rob Rix
|
923e54ff9d
|
Pick a filename if the output path is a directory.
|
2015-12-16 01:28:40 -05:00 |
|