Patrick Thomson
f10cd258cb
figured out how to share the SingleIdentifier pattern synonym.
2020-01-13 16:46:46 -05:00
Patrick Thomson
694306c106
it helps to parse the right file 🤦
2020-01-13 15:06:15 -05:00
Rob Rix
9c4818e827
Perform tagging using traverse1_.
2020-01-13 14:58:09 -05:00
Patrick Thomson
b8d2dcb30d
fix merge fallout
2020-01-13 14:41:26 -05:00
Patrick Thomson
711d240a61
pull in some pattern synonyms
2020-01-13 14:40:17 -05:00
Patrick Thomson
3d9be6a5d2
stop relying on side effects
2020-01-13 14:40:17 -05:00
joshvera
3e80585199
add assignment instances
2020-01-13 14:35:36 -05:00
Patrick Thomson
f1bdfcd86e
Move ToScopeGraph into its own module to break a cycle.
2020-01-13 14:05:31 -05:00
Rob Rix
dbe5eeec9f
Define Python tagging using GTraversable1.
2020-01-13 13:45:57 -05:00
Patrick Thomson
1f93cc02ff
okay, now we just need to define Assignment
2020-01-13 12:43:57 -05:00
Patrick Thomson
92aa4bbd0b
even more instances
2020-01-13 12:36:42 -05:00
Patrick Thomson
cc37a0c460
even more instances, and build onChildren helper
2020-01-13 12:26:02 -05:00
Patrick Thomson
79def2cb04
even more instances
2020-01-13 11:37:56 -05:00
Patrick Thomson
f7c27f8857
start defining some instances
2020-01-13 10:48:49 -05:00
Patrick Thomson
24053a1477
Sample definition for module stuff. Now to write some Generics code.
2020-01-13 10:33:29 -05:00
Patrick Thomson
bb01a368fb
This reverts commit e7df755bb6
.
2020-01-13 10:08:07 -05:00
Patrick Thomson
524fbba3ad
move the Sketch effect into semantic-scope-graph
2020-01-10 18:48:40 -05:00
Patrick Thomson
4ac7d184f4
extract this function
2020-01-10 18:40:07 -05:00
Patrick Thomson
61f8f2e8ba
This is nicer with proper use of Monoid and Semigroup.
2020-01-10 18:31:38 -05:00
Patrick Thomson
f9aadbb895
Scope graphing DSL works.
2020-01-10 17:46:37 -05:00
Patrick Thomson
da58e5c69c
start creating sketch effect
2020-01-10 15:14:05 -05:00
Patrick Thomson
1906e7b1bb
build a DSL for constructing graphs
2020-01-10 12:22:13 -05:00
Timothy Clem
dfd58dd5c8
Continue to track haskell-tree-sitter optimization work
2020-01-09 14:06:52 -08:00
joshvera
1a94c25d32
Print out a scope graph
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-01-08 13:25:43 -05:00
joshvera
6ff8abbe41
spit out a python tree
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-01-08 13:13:48 -05:00
joshvera
2ec9dc5595
Replace Graph with unlabeled graph
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-01-08 13:02:53 -05:00
joshvera
d9a51bef2d
Add a semantic-python stub executable
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-01-08 12:51:37 -05:00
joshvera
3ec51a53f5
Simplify typeclasses
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-01-08 12:51:25 -05:00
joshvera
4ba5989776
Add a ToScopeGraph interface in semantic-python
2020-01-08 12:29:17 -05:00
Timothy Clem
c0309111d8
Targeting latest haskell-tree-sitter
2020-01-07 17:08:35 -08:00
Rob Rix
4022643c42
Don’t shout about the HLINT pragma.
2020-01-06 16:38:00 -05:00
Rob Rix
f5c8346740
Ignore hints in assertEvaluatesTo.
2020-01-06 16:37:49 -05:00
Rob Rix
55e573eb7f
Revert "Trick hlint."
...
This reverts commit 29e09bea4d
.
2020-01-06 16:37:01 -05:00
Rob Rix
29e09bea4d
Trick hlint.
...
This is goofy as hell but we don’t have maybeM here.
2020-01-06 15:17:53 -05:00
Rob Rix
e34444eaf9
Revert "Placate hlint."
...
This reverts commit d278a01122
.
2020-01-06 15:13:55 -05:00
Rob Rix
d278a01122
Placate hlint.
2020-01-06 13:59:29 -05:00
Timothy Clem
52b24e55ec
Use vertical style pragmas
2020-01-06 09:30:36 -08:00
Timothy Clem
87954ae399
Some record puns
2020-01-06 09:23:19 -08:00
Rob Rix
f78d90aaae
Remove the CHECK-JQ directive.
2019-12-20 11:43:15 -05:00
Rob Rix
540b88c5a0
Evaluate closed terms.
2019-12-20 11:04:42 -05:00
Rob Rix
8894d73bbb
Correct a type signature.
2019-12-20 10:57:33 -05:00
Rob Rix
38215571c1
Fix a couple of instances.
2019-12-20 10:55:50 -05:00
Rob Rix
c04c59d772
Fix the semantic-python test build.
2019-12-20 10:47:17 -05:00
Rob Rix
50933159aa
Revert "Extract the basic introduction forms into a new syntax type."
...
This reverts commit ff4523e25e
.
2019-12-20 10:26:30 -05:00
Rob Rix
f85c31c127
Merge branch 'master' into analysis-effects
2019-12-19 10:54:29 -05:00
Timothy Clem
12428e4988
Try to always use tree-sitter 0.7.2
2019-12-18 10:59:52 -08:00
Timothy Clem
b2f10d0d6a
Merge remote-tracking branch 'origin/master' into test-precise-parsing
2019-12-18 08:35:57 -08:00
Rob Rix
667f894ec3
Merge branch 'ghcide-is-painless' into analysis-effects
2019-12-18 09:49:08 -05:00
Patrick Thomson
74183dba8c
Add a test.
2019-12-17 13:26:17 -05:00
Patrick Thomson
9d0afb4f0a
Compile not statements.
2019-12-17 13:25:59 -05:00
Patrick Thomson
e7c7910760
Add provisional __not__ definition.
2019-12-17 13:22:36 -05:00
Patrick Thomson
228e3470e9
Use preluded helper.
2019-12-17 13:14:30 -05:00
Patrick Thomson
3407b4d273
Introduce helper for preluded definitions.
2019-12-17 13:14:17 -05:00
Rob Rix
ff4523e25e
Extract the basic introduction forms into a new syntax type.
2019-12-16 13:50:58 -05:00
Patrick Thomson
266a720fa9
Use PVP operator.
2019-12-16 12:20:05 -05:00
Patrick Thomson
9817b686e5
Merge remote-tracking branch 'origin/master' into glorious-ghc-upgrade-8.8
2019-12-16 12:14:47 -05:00
Rob Rix
ae6b2849f2
Merge pull request #404 from github/none-is-the-loneliest-umber
...
Compile Python None expressions.
2019-12-16 09:34:05 -05:00
Timothy Clem
7e0c6b5417
Give this a signature
2019-12-13 13:43:59 -08:00
Patrick Thomson
da3dbdf148
Merge remote-tracking branch 'origin/master' into glorious-ghc-upgrade-8.8
2019-12-13 16:41:18 -05:00
Patrick Thomson
053306fbbd
Forgot to bind None and NoneType in the prelude exports.
2019-12-13 16:21:02 -05:00
Timothy Clem
8ade6db251
Merge remote-tracking branch 'origin/master' into test-precise-parsing
2019-12-13 13:13:54 -08:00
Patrick Thomson
6bebd84deb
Officially require GHC 8.8.
2019-12-13 15:48:49 -05:00
Patrick Thomson
e115f4ad59
Compile Python None expressions.
2019-12-13 12:51:23 -05:00
Patrick Thomson
3825be9788
Emacs misfire.
2019-12-13 12:33:26 -05:00
Patrick Thomson
e137f4c68b
Compile Python lambdas.
...
Lambdas are so hilariously crippled in Python that they're
significantly easier to compile than functions. Indeed, the resulting
core looks much like a function definition, without a `rec` binding.
2019-12-13 12:14:04 -05:00
Patrick Thomson
dc69714053
Merge remote-tracking branch 'origin/master' into glorious-ghc-upgrade-8.8
2019-12-13 11:23:36 -05:00
Patrick Thomson
862ee92eb8
Fix semantic-python tests.
2019-12-11 15:47:03 -05:00
Patrick Thomson
810d28f615
Merge remote-tracking branch 'origin/master' into glorious-ghc-upgrade-8.8
2019-12-11 12:31:30 -05:00
Timothy Clem
ec19540425
++tree-sitter 0.7
...
Also bumps parsers that changed
2019-12-10 16:34:26 -05:00
Timothy Clem
955e2622f2
Few more python built-in functions
2019-12-10 13:09:46 -08:00
Rob Rix
65d58e97da
Add a missing Compile instance.
2019-12-10 15:17:16 -05:00
Rob Rix
0c8aa34976
Fix some old-style constraints.
2019-12-10 15:17:08 -05:00
Rob Rix
fc8c818920
Correct an import.
2019-12-10 15:14:44 -05:00
Rob Rix
a461c72ae4
Bump a few tree-sitter-* versions.
2019-12-10 15:10:25 -05:00
Rob Rix
df43078a65
Merge branch 'master' into fused-effects-one-dot-zero
2019-12-10 14:48:48 -05:00
Timothy Clem
5926b47438
++tree-sitter 0.7
...
Also bumps parsers that changed
2019-12-10 11:04:02 -08:00
Timothy Clem
c4686cd7e7
++tree-sitter 0.7
...
Also bumps parsers that changed
2019-12-10 11:03:07 -08:00
Patrick Thomson
68ab3cbb97
semantic:exe now compiles
2019-12-10 13:32:56 -05:00
Timothy Clem
84a1a99cda
Handle generating tags for ParenthesizedExpression in calls
2019-12-09 13:16:56 -08:00
Timothy Clem
3c3c140cbb
Handle directly nested calls
2019-12-09 11:28:45 -08:00
Timothy Clem
4d8c7d23b4
Handle built-in python functions
2019-12-09 11:28:37 -08:00
Timothy Clem
d3763cbd69
Merge branch 'bump-haskell-tree-sitter' into test-precise-parsing
2019-12-09 11:27:51 -08:00
Timothy Clem
0930c7c7d9
One new pieces of syntax here
2019-12-09 09:57:05 -08:00
Timothy Clem
285ba19b2b
Bump to latest tree-sitters
2019-12-09 09:52:42 -08:00
Patrick Thomson
7266ab0ce2
No LambdaCase here.
2019-12-06 15:09:47 -05:00
Patrick Thomson
dd5cf213d6
Derive HFoldable instances for syntax types.
2019-12-06 14:51:09 -05:00
Patrick Thomson
cb0e0eae0c
Make Unimplemented store a String.
2019-12-06 14:49:38 -05:00
Patrick Thomson
16aa229442
Lints.
2019-12-05 17:12:21 -05:00
Patrick Thomson
91d0d8e019
Work around missing MonadFail instance for Either String.
2019-12-05 15:49:01 -05:00
Patrick Thomson
923664b811
Forgot to insert this nice new type variable.
2019-12-05 15:46:10 -05:00
Patrick Thomson
7978318d6b
Generalize eliminateFailures to MonadFail.
2019-12-05 15:15:15 -05:00
Patrick Thomson
615931890b
Restore the original location of eliminateFailures.
2019-12-05 15:10:10 -05:00
Patrick Thomson
37f70c8e28
Express eliminateFailures with Syntax.Term.handle.
2019-12-05 15:07:32 -05:00
Patrick Thomson
1c735d46d0
Establish HTraversable instances for Core, Ann, and Failure.
2019-12-05 15:06:54 -05:00
Timothy Clem
5f451450d6
Allow tagging of attributes in Python calls
2019-12-04 18:57:48 +00:00
Timothy Clem
ad1fb29dac
New tree-sitters!
2019-11-20 15:21:40 -08:00
Patrick Thomson
609ddb989c
Add eliminateFailures, even though it doesn't do what I want.
2019-11-14 15:26:04 -05:00
Patrick Thomson
99ae60a184
Remove all MonadFail occurrences from the Python compiler.
2019-11-13 14:34:18 -05:00
Patrick Thomson
14d7ba5b0b
Add failure syntax.
2019-11-13 14:33:39 -05:00
Patrick Thomson
2e39e129cd
Make semantic-python tests work.
2019-11-08 22:37:17 -05:00