Rob Rix
|
1eac4a8ab3
|
Fake out the storable instances.
|
2015-11-25 18:32:17 -05:00 |
|
Rob Rix
|
bf3fac3d53
|
What if these were records?
|
2015-11-25 18:32:05 -05:00 |
|
Rob Rix
|
b4bcc9ef47
|
Tidy up toTerm.
|
2015-11-25 18:31:54 -05:00 |
|
Rob Rix
|
d4d6210a19
|
Restore withAlloc.
|
2015-11-25 18:30:55 -05:00 |
|
Rob Rix
|
3cbe2f7a15
|
Assert that we didn’t get a broken child.
|
2015-11-25 18:30:21 -05:00 |
|
Rob Rix
|
88e78d00d8
|
Fetch the node’s name once per node.
|
2015-11-25 17:11:43 -05:00 |
|
Rob Rix
|
7039beceea
|
Return fast on empty children lists.
|
2015-11-25 17:09:42 -05:00 |
|
Rob Rix
|
81559526ac
|
Assert that the data ptr is non-null.
|
2015-11-25 17:02:06 -05:00 |
|
Rob Rix
|
e98fcf3098
|
Just say no to cabal building C.
|
2015-11-25 16:41:35 -05:00 |
|
Rob Rix
|
beeb759274
|
Simple config.
|
2015-11-25 16:41:26 -05:00 |
|
Rob Rix
|
1d6b804f46
|
Don’t link haskell-src.
|
2015-11-25 16:41:17 -05:00 |
|
Rob Rix
|
caf06cef5e
|
Don’t import the Haskell parser stuff.
|
2015-11-25 16:41:06 -05:00 |
|
Rob Rix
|
5158e28349
|
Up to but not including the count.
|
2015-11-25 15:22:18 -05:00 |
|
Rob Rix
|
4aadaae7b6
|
Convert name to a Haskell string.
|
2015-11-25 15:17:51 -05:00 |
|
Rob Rix
|
2fef254244
|
Disambiguate which member we mean.
|
2015-11-25 15:17:40 -05:00 |
|
Rob Rix
|
854225666b
|
Produce Fixed nodes.
|
2015-11-25 15:10:49 -05:00 |
|
Rob Rix
|
3f97be8df8
|
Remove withAlloc .
|
2015-11-25 15:05:24 -05:00 |
|
Rob Rix
|
ac6173fd8a
|
Just use alloca.
|
2015-11-25 15:05:10 -05:00 |
|
Rob Rix
|
debae6d3d4
|
Everything else is Indexed (for now).
|
2015-11-25 15:02:42 -05:00 |
|
Rob Rix
|
aa4de17445
|
Only use leaves for empty nodes.
|
2015-11-25 15:02:30 -05:00 |
|
Rob Rix
|
d6860a8934
|
Unpack the node and category another layer deep.
|
2015-11-25 15:02:11 -05:00 |
|
Rob Rix
|
0b735a697d
|
None of these may be NULL.
|
2015-11-25 15:01:27 -05:00 |
|
Rob Rix
|
855a8bc51b
|
Annotate terms with ranges.
|
2015-11-25 12:56:22 -05:00 |
|
Rob Rix
|
3f5ce3806d
|
Populate leaves with the substring for the node.
|
2015-11-25 12:54:42 -05:00 |
|
Rob Rix
|
8bc51c2f86
|
Compute a substring from a range.
|
2015-11-25 12:53:56 -05:00 |
|
Rob Rix
|
40a0bc0b91
|
Pass the contents of the file to toTerm.
|
2015-11-25 12:53:48 -05:00 |
|
Rob Rix
|
ba3e2d8256
|
Compute the range of a given node.
|
2015-11-25 12:51:11 -05:00 |
|
Rob Rix
|
c57dd1ef8f
|
Return the position & size directly.
Copying into TSLengths ended up being worst of both worlds.
|
2015-11-25 12:50:22 -05:00 |
|
Rob Rix
|
93e05435e5
|
Import position/size functions.
|
2015-11-25 12:25:06 -05:00 |
|
Rob Rix
|
5667f4d687
|
That is not where these live.
|
2015-11-25 12:24:07 -05:00 |
|
Rob Rix
|
6444566952
|
Bridge node sizing.
|
2015-11-25 12:22:21 -05:00 |
|
Rob Rix
|
81d529dee8
|
Bridge node positions.
|
2015-11-25 12:21:47 -05:00 |
|
Rob Rix
|
1bb38abd71
|
Generalize withNode to withAlloc .
|
2015-11-25 12:19:39 -05:00 |
|
Rob Rix
|
2d60fea921
|
Remove the Kliesli import as we don’t actually use it.
|
2015-11-25 12:08:30 -05:00 |
|
Rob Rix
|
0f059a4299
|
Retrieve the named children of a node.
|
2015-11-25 12:06:21 -05:00 |
|
Rob Rix
|
b39bc3e33e
|
Produce a list of named children of a node.
|
2015-11-25 12:05:25 -05:00 |
|
Rob Rix
|
e87459d608
|
Import left-to-right Kliesli composition.
|
2015-11-25 12:05:05 -05:00 |
|
Rob Rix
|
17078ad865
|
Import the named child function.
|
2015-11-25 11:47:24 -05:00 |
|
Rob Rix
|
4f63394379
|
Add a wrapper function for getting the child at a specific index.
|
2015-11-25 11:46:34 -05:00 |
|
Rob Rix
|
6c1688f7ef
|
Retrieve the named child count.
|
2015-11-25 11:43:36 -05:00 |
|
Rob Rix
|
9b35bd7f24
|
Import the named child count.
|
2015-11-25 11:43:31 -05:00 |
|
Rob Rix
|
5b6c88b6b8
|
Add a bridging function wrapping ts_node_named_child_count.
|
2015-11-25 11:42:31 -05:00 |
|
Rob Rix
|
3744714c59
|
Move the productions into toTerm .
|
2015-11-25 11:12:16 -05:00 |
|
Rob Rix
|
9c3151da19
|
Point at my fork of tree-sitter-c for the moment.
|
2015-11-25 11:08:02 -05:00 |
|
Rob Rix
|
fe34f0381c
|
Update the URL/path for the tree-sitter-javascript submodule.
I don’t know how this got missed.
|
2015-11-25 11:07:09 -05:00 |
|
Rob Rix
|
13edc3c832
|
Derive a Traversable instance for Syntax.
|
2015-11-25 10:58:47 -05:00 |
|
Rob Rix
|
06763cd7fc
|
Add the DeriveTraversable extension.
|
2015-11-25 10:58:37 -05:00 |
|
Rob Rix
|
abf8c693b3
|
Derive a Foldable instance for Syntax .
|
2015-11-25 10:58:02 -05:00 |
|
Rob Rix
|
15868b77ae
|
Add DeriveFoldable.
|
2015-11-25 10:57:54 -05:00 |
|
Rob Rix
|
333bba93c5
|
Flesh out toTerm.
|
2015-11-25 10:52:48 -05:00 |
|