1
1
mirror of https://github.com/github/semantic.git synced 2024-12-02 11:23:05 +03:00
Commit Graph

377 Commits

Author SHA1 Message Date
Ayman Nadeem
c7ac076a59 we want an additional type parameter, so it's f a not just a 2020-02-20 15:07:59 -05:00
Ayman Nadeem
74f35e309a rename TestHelpers for real 2020-02-20 14:53:19 -05:00
Ayman Nadeem
507f1c21a4 scope should be clear without TH. 2020-02-20 13:52:45 -05:00
Ayman Nadeem
037b03307e use TH functions instead of constructors to standardize 2020-02-20 13:48:31 -05:00
Timothy Clem
68bc0f68d5 Bring back tree-sitter corpus tests for go 2020-02-20 10:38:52 -08:00
Ayman Nadeem
9df8160df9 remove ^ from hedgehog version bound 2020-02-14 16:37:30 -05:00
Ayman Nadeem
a1a2ca1533 use TH.plainTV instead of TH.PlainTV 2020-02-14 16:29:19 -05:00
Ayman Nadeem
82a0062f3c change AST.Test to AST.TestHelpers 2020-02-14 11:33:01 -05:00
Ayman Nadeem
6c24228187 🥕bounds 2020-02-14 11:29:25 -05:00
Ayman Nadeem
3ef135e2d1 refactor 2020-02-13 17:17:27 -05:00
Ayman Nadeem
aed2ce774f simplify readability 2020-02-13 16:51:59 -05:00
Ayman Nadeem
4d744ffdd9 use constructor instead of String in signature 2020-02-13 16:17:26 -05:00
Ayman Nadeem
5a94fda83a factor out repeated traversalInstances 2020-02-13 16:07:35 -05:00
Ayman Nadeem
f08e0d9dda use mappend instead of <> 2020-02-13 16:01:25 -05:00
Ayman Nadeem
32d3b3af9e Update semantic-ast.cabal 2020-02-07 19:36:08 -05:00
Ayman Nadeem
bffe4284fe Update semantic-ast.cabal 2020-02-06 16:46:36 -05:00
Ayman Nadeem
db295a5b2d Delete Test.hs 2020-02-06 16:46:32 -05:00
Ayman Nadeem
6f8e8b6b5b Create Test.hs 2020-02-06 16:46:28 -05:00
Ayman Nadeem
b3eb124a75 Update semantic-ast.cabal 2020-02-06 16:27:26 -05:00
Ayman Nadeem
7a0f2280d5 TreeSitter.Test.Helpers is now AST.Test 2020-02-06 16:27:22 -05:00
Ayman Nadeem
36364e831a Delete Helpers.hs 2020-02-06 16:27:00 -05:00
Ayman Nadeem
85c79821d9 rename Marshal.JSON to AST.Marshal.JSON 2020-02-06 12:36:07 -05:00
Ayman Nadeem
602642169b move docs to semantic-ast 2020-02-04 17:36:29 -05:00
Ayman Nadeem
15c91a50f2 Update semantic-ast.cabal 2020-02-04 17:31:48 -05:00
Ayman Nadeem
fc27cf0dbe update semantic-ast.cabal with codegen files 2020-02-04 17:26:38 -05:00
Ayman Nadeem
0324f94381 move WIP helpers from semantic-codegen to semantic-ast 2020-02-04 17:26:26 -05:00
Ayman Nadeem
22a15a7b2f move AST.Grammar.TH to semantic-ast from semantic-codegen 2020-02-04 17:26:02 -05:00
Ayman Nadeem
1d643c5b98 move AST.Examples to semantic-ast from semantic-codegen 2020-02-04 17:25:37 -05:00
Ayman Nadeem
35c04464fc move AST.Unmarshal to semantic-ast from semantic-codegen 2020-02-04 17:25:06 -05:00
Ayman Nadeem
8ad6585ad2 move AST.Token to semantic-ast from semantic-codegen 2020-02-04 17:24:20 -05:00
Ayman Nadeem
034d2836d7 move AST.GenerateSyntax to semantic-ast from semantic-codegen 2020-02-04 17:23:58 -05:00
Ayman Nadeem
f5eeb93813 move AST.Deserialize to semantic-ast from semantic-codegen 2020-02-04 17:23:33 -05:00
Rob Rix
223fd96fdb
Move the README to semantic-parse. 2020-02-04 14:28:18 -05:00
Rob Rix
23649d50be
🔥 the semantic-ast executable (since it has been moved to semantic-parse). 2020-02-04 14:27:37 -05:00
Rob Rix
0291afcd98
Placate hlint. 2020-02-04 14:21:38 -05:00
Rob Rix
b66974b95b
Split up AST.Traversable1 into two modules. 2020-02-04 14:18:37 -05:00
Rob Rix
7e08d781c9
Add a module header describing the organizational concerns. 2020-02-04 14:13:10 -05:00
Rob Rix
3737b2b4cf
Stub in a module for just the Traversable1 class. 2020-02-04 14:11:43 -05:00
Rob Rix
bcea47bda1
Fixed. 2020-02-04 13:57:45 -05:00
Rob Rix
d40f3832e8
Move AST.Element from semantic-tags into semantic-ast. 2020-02-04 13:36:40 -05:00
Rob Rix
7a2cc7fb7a
Move Traversable1 into semantic-ast. 2020-02-04 13:35:35 -05:00
Rob Rix
933f135eae
Stub in a module for Traversable1. 2020-02-04 13:23:26 -05:00
Ayman Nadeem
24cea64644 remove unnecessary qualifier 2020-02-03 16:14:14 -05:00
Ayman Nadeem
eab2503e1f remove all codegen dependencies from semantic-ast 2020-01-30 17:36:06 -05:00
Ayman Nadeem
f46e6f0bc5 remove all codegen modules from semantic-ast.cabal 2020-01-30 17:35:51 -05:00
Ayman Nadeem
85f751fc6c Move codegen files into semantic-codegen from semantic-ast 2020-01-30 17:34:31 -05:00
Ayman Nadeem
2d2ba3c819 Update semantic-ast.cabal 2020-01-30 13:45:26 -05:00
Ayman Nadeem
42cfbab4ed Create TH.hs 2020-01-30 13:44:31 -05:00
Ayman Nadeem
0900bdbe74 Merge branch 'master' into my-grate 2020-01-29 15:09:17 -05:00
Ayman Nadeem
f5a444f60a Replace TreeSitter.Python with Language.Python.Grammar 2020-01-28 16:09:19 -05:00
Patrick Thomson
9ecaeedcc3 Depend on newer semantic-source. 2020-01-28 12:42:42 -05:00
Ayman Nadeem
2cd3dd10b1 Update Main in semantic-ast to reference AST.Unmarshal 2020-01-28 11:33:29 -05:00
Ayman Nadeem
24bcd26b75 add contents to Unmarshal 2020-01-27 19:21:55 -05:00
Ayman Nadeem
10a11b41ad add contents to Token 2020-01-27 19:21:48 -05:00
Ayman Nadeem
3e25491053 add contents to GenerateSyntax 2020-01-27 19:21:41 -05:00
Ayman Nadeem
be28836c25 add contents to Deserialize 2020-01-27 19:21:33 -05:00
Ayman Nadeem
f0f88c4e48 Update semantic-ast.cabal 2020-01-27 19:13:31 -05:00
Ayman Nadeem
ad506fc370 expose AST modules 2020-01-27 19:13:21 -05:00
Ayman Nadeem
90f275acd1 Create Unmarshal.hs 2020-01-27 19:12:47 -05:00
Ayman Nadeem
978b39c3ea Create Token.hs 2020-01-27 19:12:45 -05:00
Ayman Nadeem
131699fd66 Create GenerateSyntax.hs 2020-01-27 19:12:42 -05:00
Ayman Nadeem
a8c227102b Create Deserialize.hs 2020-01-27 19:12:40 -05:00
Ayman Nadeem
b423eb1d4b change TreeSitter.Python.AST to Language.Python.AST 2020-01-27 14:44:24 -05:00
Patrick Thomson
5a328dbf58 Remove blobOid field and kill some warnings. 2020-01-24 14:53:49 -05:00
Ayman Nadeem
ecfa192097 remove Examples forrealzies 2020-01-24 11:43:40 -05:00
Ayman Nadeem
5b5e3e992d change executable source-dirs to app 2020-01-24 11:40:19 -05:00
Ayman Nadeem
0177b5c37e move Main to app/Main 2020-01-24 11:39:59 -05:00
Ayman Nadeem
19a58bacc6 Delete Examples.hs 2020-01-24 10:49:45 -05:00
Ayman Nadeem
c40ef71f8e Merge branch 'master' into json-output 2020-01-21 16:47:13 -05:00
Ayman Nadeem
2f215ce4dc clean up 2020-01-21 16:47:00 -05:00
Ayman Nadeem
d3939879f5 No longer need old :+: implementation 2020-01-21 16:39:55 -05:00
Ayman Nadeem
1523523c99 create sum instance that lets us omit noisy sums at every node in nested tree 2020-01-21 16:39:38 -05:00
Ayman Nadeem
fd29dea536 Need to eventually add range/span which depends on new release of semantic-source 2020-01-21 16:38:37 -05:00
Ayman Nadeem
e1645518c4 TODO 2020-01-21 16:38:18 -05:00
Ayman Nadeem
41a1bf1d4c 🚮GMarshalJSON instance 2020-01-21 16:38:11 -05:00
Ayman Nadeem
f839e79ac1 TODO for sums 2020-01-21 16:30:50 -05:00
Ayman Nadeem
78ad74372c Documentation that might go away later 2020-01-21 16:30:34 -05:00
Ayman Nadeem
205fb4e013 Need an instance for MarshalJSON 2020-01-21 16:18:41 -05:00
Ayman Nadeem
2c5935bbd7 🚮GMarshalJSON 2020-01-21 16:18:27 -05:00
Ayman Nadeem
76ff862a11 GHC can infer based on single instance class constraint 2020-01-21 16:14:49 -05:00
Ayman Nadeem
d75753894f add a fields method with default definition to MarshalJSON 2020-01-21 16:14:19 -05:00
Ayman Nadeem
cbe303d81d move object call up here because we want to product values when we marshal 2020-01-21 16:13:45 -05:00
Ayman Nadeem
1a18c17347 default signature no longer relevant 2020-01-21 16:13:29 -05:00
Ayman Nadeem
0d269d88ac remove Generic constraints 2020-01-21 16:13:17 -05:00
Ayman Nadeem
3304186ed5 notes 2020-01-21 16:12:09 -05:00
Ayman Nadeem
5970982065 TODOs 2020-01-21 16:11:42 -05:00
Ayman Nadeem
164672e52a create a place to pass type name info along, and produce type banes 2020-01-21 16:11:32 -05:00
Ayman Nadeem
c5fc76cb25 Call gfields without object 2020-01-21 16:10:50 -05:00
Ayman Nadeem
c9141c610a This TODO is still relevant 2020-01-21 16:08:37 -05:00
Ayman Nadeem
87f831b8b0 include Marshal.Examples in cabal file 2020-01-16 16:05:54 -05:00
Timothy Clem
c0d8675d09 Use semantic-source 0.0.1 2020-01-16 12:57:24 -08:00
Ayman Nadeem
7598a48765 remove redundant pragma 2020-01-16 15:37:08 -05:00
Ayman Nadeem
551c652148 OPTIONS_GHC is correct, GHC-OPTIONS is not. 2020-01-16 15:36:51 -05:00
Ayman Nadeem
b09a39c7a1 remove ghc-options from executable 2020-01-16 15:35:50 -05:00
Ayman Nadeem
e648302a44 remove -Wno-unused-top-binds; unused top bindings are a signal of dead code 2020-01-16 15:35:00 -05:00
Ayman Nadeem
c380908a2a no longer relevant since we're directly marshaling in Main now 2020-01-16 14:00:39 -05:00
Ayman Nadeem
12a126c60b add TODO to venture beyond python 2020-01-16 14:00:16 -05:00
Ayman Nadeem
2b23609d4a add this back as per Rob's approval 2020-01-16 09:30:22 -05:00
Timothy Clem
cc8d71d4cf Use newly released versions of tree-sitter with optimizations 2020-01-14 12:41:53 -08:00
Ayman Nadeem
8befed9940 🔥comments 2020-01-13 10:46:59 -05:00