1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00
Commit Graph

3235 Commits

Author SHA1 Message Date
Rob Rix
31fcf6e33c Add a languageForType binding to TreeSitter. 2015-12-15 14:39:54 -05:00
Rob Rix
9c0bca7b67 Revert "Rephrase parserForType with pattern matching at the root."
This reverts commit 2b1c9004f73283445f8f3523898e88ba4ed131fd.
2015-12-15 14:38:31 -05:00
Rob Rix
fe85e31574 Rephrase parserForType with pattern matching at the root. 2015-12-15 14:38:20 -05:00
Rob Rix
96d604092e Add the Haskell module to the profile component. 2015-12-15 14:36:42 -05:00
Rob Rix
46029defd2 Import Haskell. 2015-12-15 14:36:31 -05:00
Rob Rix
8e154e0016 Move parserForType into Parser. 2015-12-15 14:36:25 -05:00
Rob Rix
ac042e0c4a Remove some unnecessary parameters from makeLeaf. 2015-12-15 14:36:03 -05:00
Rob Rix
30c2d96066 TreeSitter doesn’t import Parser. 2015-12-15 14:35:48 -05:00
Rob Rix
5add0089a2 Lean on the Monoid instance. 2015-12-15 14:35:37 -05:00
Rob Rix
ad68d7beab Move Parser into the executable(s). 2015-12-15 14:35:11 -05:00
Rob Rix
706da9e13e Stub in a Haskell parser module. 2015-12-15 14:22:06 -05:00
Rob Rix
c9ad5f3941 Depend on parsec. 2015-12-15 14:22:00 -05:00
Josh Vera
14fab0f57e Merge pull request #314 from github/split-rendering-of-keyed-nodes
Split rendering of keyed nodes
2015-12-15 13:04:30 -05:00
Rob Rix
0908a4efd8 Inserted elements are inserted. 2015-12-15 12:42:50 -05:00
Rob Rix
095ed7307f Merge branch 'master' into split-rendering-of-keyed-nodes 2015-12-15 12:35:43 -05:00
Rob Rix
2a43e355d7 Pairs are Fixed, not Indexed. 2015-12-15 09:14:23 -05:00
Rob Rix
b0739e53d1 Fewer parens. 2015-12-14 19:12:03 -05:00
Rob Rix
64b011e388 Diff Keyed nodes in order. 2015-12-14 19:11:40 -05:00
Rob Rix
d8dbfb15c5 Use Lists instead of Sets. 2015-12-14 19:10:17 -05:00
Rob Rix
9cc94ddf43 Compute the key/value pair for patched/equal elements. 2015-12-14 19:07:28 -05:00
Rob Rix
45ae975496 Compute the key/value pair for inserted elements. 2015-12-14 19:06:34 -05:00
Rob Rix
0d95b54f0f Compute the key/value pair for deleted elements. 2015-12-14 19:05:57 -05:00
Rob Rix
8249f7492c Merge branch 'master' into split-rendering-of-keyed-nodes 2015-12-14 18:49:55 -05:00
Rob Rix
f399b496d7 Get the substring of the keys for pair nodes. 2015-12-14 18:47:29 -05:00
Rob Rix
defc45eb4e Use getSubstring for arbitrary children of keyed nodes. 2015-12-14 18:47:20 -05:00
Josh Vera
772b8061e7 Merge pull request #329 from github/ordered-map-but-this-time-working
Ordered map, but this time working
2015-12-14 18:45:44 -05:00
Rob Rix
8ba29d97a3 Add a binding to get the substring for a node. 2015-12-14 18:38:52 -05:00
Rob Rix
c6e5f89dfe Assign non-pairs a key from their substrings. 2015-12-14 18:36:46 -05:00
Rob Rix
09ec17cbb6 Stub in a function to map pairs to better keys. 2015-12-14 18:34:53 -05:00
Rob Rix
aa8a36e36c Merge branch 'ordered-map-but-this-time-working' into split-rendering-of-keyed-nodes 2015-12-14 18:27:50 -05:00
Rob Rix
9604238c02 Test the asymmetry of intersectionWith. 2015-12-14 18:20:21 -05:00
Rob Rix
a357c155f8 Test the ordering of keys. 2015-12-14 18:18:40 -05:00
Rob Rix
ae298f287a Test that unions does not duplicate elements. 2015-12-14 18:17:48 -05:00
Rob Rix
b2cceea842 Rename the unions test. 2015-12-14 18:16:22 -05:00
Rob Rix
e9cac45f65 Test union asymmetry. 2015-12-14 18:15:56 -05:00
Rob Rix
79d5e38b26 Use distinct elements in a and b. 2015-12-14 18:15:14 -05:00
Rob Rix
4fd12e7223 Test unions. 2015-12-14 18:13:19 -05:00
Rob Rix
62a4327bda Test the asymmetry of difference. 2015-12-14 18:11:42 -05:00
Rob Rix
1d7dced61f Test keys. 2015-12-14 18:10:20 -05:00
Rob Rix
b2cbda1926 Extract the keys into the where clause. 2015-12-14 18:08:24 -05:00
Rob Rix
fbad8a45e3 Qualify the imports to make them easier to spot. 2015-12-14 18:06:56 -05:00
Rob Rix
ecb3e918f6 Use ! instead of lookup. 2015-12-14 18:05:00 -05:00
Rob Rix
6180986275 Merge branch 'ordered-map-but-this-time-working' into split-rendering-of-keyed-nodes 2015-12-14 17:59:28 -05:00
Rob Rix
a56d527f8d Merge branch 'master' into ordered-map-but-this-time-working 2015-12-14 17:58:38 -05:00
Rob Rix
a6ef7a3457 Revert "Fix inverted semantics of union."
This reverts commit 699bab3abd877104062ff3db8135b6cce093d533.
2015-12-14 17:57:41 -05:00
Rob Rix
2ee77fe490 Import OrderedMap instead of Data.Map. 2015-12-14 17:57:24 -05:00
Rob Rix
e96a77aa1a Test the intersection. 2015-12-14 17:54:22 -05:00
Rob Rix
aeb99b54a0 Test the union. 2015-12-14 17:53:05 -05:00
Rob Rix
ab6658edc8 Extract the fixtures. 2015-12-14 17:51:15 -05:00
Rob Rix
26400a24a8 Import & run the OrderedMapSpec spec. 2015-12-14 17:49:40 -05:00