Rob Rix
f27729ab14
Move the 'None instance up.
2019-10-08 15:39:08 -04:00
Rob Rix
3334ec81d3
🔥 OVERLAPPABLE.
2019-10-08 15:37:52 -04:00
Rob Rix
711ec1957d
📝 Prj.
2019-10-08 15:35:07 -04:00
Rob Rix
3051c8cace
Spacing.
2019-10-08 15:34:47 -04:00
Rob Rix
da227888ce
Rename Elem to Find.
2019-10-08 15:34:33 -04:00
Rob Rix
da890fa747
Redefine Element using a type family computing which side to recur on.
...
This avoids having to reassociate the tree, which is considerably more expensive for balanced trees.
2019-10-08 15:30:37 -04:00
Rob Rix
75ed50c574
List the imports from GHC.Generics.
2019-10-08 15:20:58 -04:00
Rob Rix
a307d0757a
Define a pattern synonym for matching out of sums.
2019-10-08 15:10:33 -04:00
Rob Rix
4e194a5943
📝 prj.
2019-10-08 15:08:37 -04:00
Rob Rix
ad1de17e64
📝 Element.
2019-10-08 15:08:17 -04:00
Rob Rix
49cba72090
Update semantic-java.
2019-10-08 15:04:00 -04:00
Patrick Thomson
b727562545
No reprinting spec necessary.
2019-10-08 15:03:34 -04:00
Patrick Thomson
3b4b9dc95e
fix stray typo and remove spec invocations
2019-10-08 15:02:33 -04:00
Rob Rix
51e74b9b1e
Update semantic-python.
2019-10-08 15:01:34 -04:00
Rob Rix
5e3afdb2da
Revert " 🔥 AST.Element for now."
...
This reverts commit ad43b0c1a2
.
2019-10-08 14:45:21 -04:00
Patrick Thomson
693c317bf0
Remove experimental reprinting and rewriting facilities.
...
As we shift to a precise, non-DTALC representation of language syntax,
the foundations upon which our (experimental) reprinting and rewriting
framework are becoming questionable. These experiments are not hooked
up anywhere (except the tests), constitute a considerable amount of
code, and are getting in the way of @robrix and myself lately.
I like a lot of this code, but if we're not using it, it's our moral
imperative to delete it, if only to reduce the carbon emissions
associated with our CI builds. We can always rescuscitate it from the
git history if we find ourselves wanting it back.
2019-10-08 14:41:31 -04:00
Rob Rix
a67b67db6f
Merge branch 'master' into precise-json
2019-10-08 14:36:36 -04:00
Patrick Thomson
c33eed2da7
Merge pull request #317 from github/core-source-loc-name
...
Use semantic-source in semantic-core & represent Name as a newtype
2019-10-07 21:35:07 -04:00
Patrick Thomson
665429fa92
We have these JSON instances already.
2019-10-07 20:16:54 -04:00
Patrick Thomson
8d9c7b9277
Unnecessary parens.
2019-10-07 17:46:07 -04:00
Patrick Thomson
a001a02b5c
Formatting.
2019-10-07 17:46:06 -04:00
Patrick Thomson
7eaf7423e0
Fix the generators and kill some unused imports.
2019-10-07 17:45:53 -04:00
Patrick Thomson
ae46a7b105
Make Data.Name.Name a newtype rather than a synonym.
...
The fact that `Name` was a simple alias for `Text` was creeping into
the error messages I'm seeing in `semantic-python`, which was a bit of
a buzzkill. This remedies that.
2019-10-07 17:45:53 -04:00
Rob Rix
527ad69cbd
Merge branch 'master' into core-source-loc-name
2019-10-07 17:41:26 -04:00
Rob Rix
dcc228d1fa
Update for the new shape of Name.
2019-10-07 17:36:35 -04:00
Rob Rix
c5fe348ed3
Simplify locFromTSSpan.
2019-10-07 17:34:15 -04:00
Rob Rix
16b475c57f
Rename FailWithLocC to FailC.
2019-10-07 17:26:37 -04:00
Rob Rix
1391e75a14
Move FailWithLocC into its own module.
2019-10-07 17:25:11 -04:00
Patrick Thomson
d5f8248fd1
Merge branch 'master' into remove-shelly
2019-10-07 17:23:47 -04:00
Rob Rix
89e0185371
Stub in a module for FailWithLoc.
2019-10-07 17:21:23 -04:00
Rob Rix
a93327f46d
🔥 emptySpan.
2019-10-07 17:19:16 -04:00
Rob Rix
36eb0df4a9
Don’t use emptySpan in the doctests.
2019-10-07 17:18:53 -04:00
Rob Rix
d70f95fa56
Don’t re-export Span/Pos.
2019-10-07 17:18:18 -04:00
Rob Rix
8f11c4dae3
🔥 some commented-out fields.
2019-10-07 17:16:37 -04:00
Rob Rix
0b642f579d
Use semantic-source’s definition of Span.
2019-10-07 17:16:01 -04:00
Rob Rix
b082341704
Depend on semantic-source.
2019-10-07 17:14:32 -04:00
Rob Rix
03b12f2900
Define as a newtype wrapper around Text.
2019-10-07 17:10:24 -04:00
Patrick Thomson
651ec2a664
Merge pull request #315 from github/java-under-construction
...
Update Java support status in the README.
2019-10-07 17:09:45 -04:00
Patrick Thomson
998f04ee18
Update Java support status in the README.
...
Now that we’ve removed the Java syntax and assignment modules, parse/assign/diff capabilities for Java have, temporarily, regressed. Let’s inform people of this in the README.
2019-10-07 16:54:10 -04:00
Rob Rix
bacb523b7f
Use the AST synonym in the type of MarkdownParser.
2019-10-07 14:40:09 -04:00
Rob Rix
a457d8777f
Use the AST synonym in the type of AssignmentParser.
2019-10-07 14:39:39 -04:00
Rob Rix
c01e8314ff
🔥 the various *ASTParsers.
2019-10-07 14:37:53 -04:00
Rob Rix
3cad826597
🔥 SomeASTParser.
2019-10-07 14:35:49 -04:00
Rob Rix
a21afc0e1b
🔥 Semantic.AST.
2019-10-07 14:35:05 -04:00
Rob Rix
c25cac9531
🔥 tsParseCommand.
2019-10-07 14:34:07 -04:00
Rob Rix
2f6d485205
Get tree_sitter_python from semantic-python for the precise parser.
...
It’s the same symbol, but will ease breaking the dependency when we 🔥 à la carte Python.
2019-10-07 14:22:28 -04:00
Rob Rix
d530c57141
Re-export tree_sitter_python from Language.Python.
2019-10-07 14:21:57 -04:00
Rob Rix
72b64eaee0
🔥 semantic’s direct dependency on tree-sitter-java.
2019-10-07 14:18:57 -04:00
Rob Rix
223007c508
Get tree_sitter_java from Language.Java.
2019-10-07 14:18:46 -04:00
Rob Rix
5ff38b7296
Re-export tree_sitter_java from Language.Java.
2019-10-07 14:17:19 -04:00