1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00
Commit Graph

735 Commits

Author SHA1 Message Date
Rob Rix
68d43468af
Merge pull request #361 from github/yes-comment
Support comments in the Core parser.
2019-10-25 13:06:31 -04:00
Patrick Thomson
fe468f2cda Go with // for comments. 2019-10-25 10:54:35 -04:00
Patrick Thomson
65f6325668 simplify projection 2019-10-25 09:50:04 -04:00
Patrick Thomson
2d8819933a Simplify derivations. 2019-10-25 09:35:08 -04:00
Patrick Thomson
1c039b786b Kill unused function. 2019-10-23 16:05:57 -04:00
Patrick Thomson
bf1aebf1f3 Add comments to Core.
I went with the Haskell comment style (`--` for line comments, `{- -}`
for block comments, allowing nested multiline comments. This can be
changed pretty easily.
2019-10-23 15:27:13 -04:00
Patrick Thomson
14c3faf750 the tests pass now 2019-10-23 13:09:26 -04:00
Patrick Thomson
91558a7d65 Add generator for .? (this kills the crab^Wtests). 2019-10-23 12:24:35 -04:00
Patrick Thomson
8f0790ced2 Add pretty-printing support. 2019-10-23 12:05:40 -04:00
Patrick Thomson
9b56f60132 Add parsing support. 2019-10-23 12:05:35 -04:00
Patrick Thomson
b58132ba0e Unused imports. 2019-10-23 12:05:28 -04:00
Patrick Thomson
cb783e6646 Make this a boolean operator pending resolution of #358. 2019-10-23 11:59:23 -04:00
Patrick Thomson
5d5113ff69 fix brokenness that crept in overnight (?) 2019-10-23 10:31:55 -04:00
Patrick Thomson
559958d9cf Define new :? type for checked lookups and try implementing it. 2019-10-22 17:27:54 -04:00
Rob Rix
6b9ba62c8c
Rename Core.Core.* to Core.*. 2019-10-11 13:50:40 -04:00
Rob Rix
740a3ca1a9
Core’s tests depend on semantic-analysis. 2019-10-11 12:55:23 -04:00
Rob Rix
9e31fc1f9b
semantic-core no longer has doctests. 2019-10-11 12:53:36 -04:00
Rob Rix
d20cbead89
Remove the Analysis.* and Control.* hierarchies from semantic-core. 2019-10-11 12:52:32 -04:00
Rob Rix
052eb88231
🔥 a couple of redundant dependencies. 2019-10-11 12:52:18 -04:00
Rob Rix
6bac8d2770
How did this ever work? What does it even do? 2019-10-11 12:42:21 -04:00
Rob Rix
85d09b5116
Rename Core.File to Analysis.File. 2019-10-11 12:37:11 -04:00
Rob Rix
5f9787f21c
Correct an import. 2019-10-11 12:22:12 -04:00
Rob Rix
6bfd33e7bc
Correct the import. 2019-10-11 12:21:04 -04:00
Rob Rix
3700cb5106
Merge branch 'eliminate-core-loc' into generalize-analysis-over-the-name-type 2019-10-11 12:20:53 -04:00
Rob Rix
7c2ac87ff3
Correct the doctest. 2019-10-11 12:19:37 -04:00
Rob Rix
5ef4ecdde9
Merge branch 'eliminate-core-loc' into generalize-analysis-over-the-name-type 2019-10-11 12:15:39 -04:00
Rob Rix
7554271e2d
toString. 2019-10-11 12:14:58 -04:00
Rob Rix
7d52293e13
Merge branch 'eliminate-core-loc' into generalize-analysis-over-the-name-type 2019-10-11 12:12:35 -04:00
Rob Rix
f3b3a32f8a
Merge branch 'core-factoring' into eliminate-core-loc 2019-10-11 12:12:25 -04:00
Rob Rix
a278c9daab
Import eval. 2019-10-11 12:11:30 -04:00
Rob Rix
d78c3ddc9e
Merge branch 'eliminate-core-loc' into generalize-analysis-over-the-name-type 2019-10-11 11:51:46 -04:00
Rob Rix
37b723aa81
Merge branch 'core-factoring' into eliminate-core-loc 2019-10-11 11:51:34 -04:00
Rob Rix
b77a3b8058
Enable flexible contexts for the doctest. 2019-10-11 11:50:16 -04:00
Rob Rix
a160c0b7d5
Generalize typecheckingFlowInsensitive over the name type. 2019-10-11 11:47:39 -04:00
Rob Rix
ffc281f0f3
Generalize runFile over the name type. 2019-10-11 11:47:01 -04:00
Rob Rix
6efc7c7301
Generalizee typecheckingAnalysis over the name type. 2019-10-11 11:45:57 -04:00
Rob Rix
45dfc6ead1
Generalize solve over the name type. 2019-10-11 11:45:32 -04:00
Rob Rix
d184acfbfe
Generalize Solution over the name type. 2019-10-11 11:41:11 -04:00
Rob Rix
6d3d1751b6
Generalize unify over the name type. 2019-10-11 11:40:30 -04:00
Rob Rix
a17d0b57ff
Generalize meta over the name type. 2019-10-11 11:40:09 -04:00
Rob Rix
f87f7c0d0d
Generalize Constraint over the name type. 2019-10-11 11:39:32 -04:00
Rob Rix
7e51f43451
Generalize Substitution over the name type. 2019-10-11 11:38:38 -04:00
Rob Rix
6fa4a01c80
Generalize Type over the name type. 2019-10-11 11:37:49 -04:00
Rob Rix
7d8e8f27d4
Generalize Monotype over the name type. 2019-10-11 11:36:17 -04:00
Rob Rix
804e3c1020
Use the Type synonym more widely. 2019-10-11 11:35:03 -04:00
Rob Rix
5ae39b172d
Generalize scopeGraph over the name type. 2019-10-11 11:33:29 -04:00
Rob Rix
a4b016d3df
Generalize runFile over the name type. 2019-10-11 11:32:55 -04:00
Rob Rix
ee292476e2
Generalize scopeGraphAnalysis over the name type. 2019-10-11 11:31:59 -04:00
Rob Rix
5eff1ac7af
Generalize ScopeGraph over the name type. 2019-10-11 11:31:31 -04:00
Rob Rix
701937f7d2
🔥 a redundant type application. 2019-10-11 11:31:22 -04:00
Rob Rix
b739911580
Generalize Decl over the name type. 2019-10-11 11:29:23 -04:00
Rob Rix
0c1b7bc25f
Analysis expects term to be * -> *. 2019-10-11 11:28:44 -04:00
Rob Rix
3b33e7768f
Apply term in Semi at * -> *. 2019-10-11 11:28:18 -04:00
Rob Rix
a0a7d37797
Generalize importGraph over the name type. 2019-10-11 11:27:03 -04:00
Rob Rix
6a0f78699a
Generalize runFile over the name type. 2019-10-11 11:26:27 -04:00
Rob Rix
ccea885056
Generalize importGraphAnalysis over the name type. 2019-10-11 11:25:32 -04:00
Rob Rix
29caad2419
Generalize Value over the name type. 2019-10-11 11:24:41 -04:00
Rob Rix
adeec84cd8
Generalize Semi over the name type. 2019-10-11 11:23:44 -04:00
Rob Rix
462086e473
Concrete applies term at * -> *. 2019-10-11 11:19:26 -04:00
Rob Rix
56556d3d98
Generalize concrete over the name type. 2019-10-11 11:17:16 -04:00
Rob Rix
6e439f8f49
Generalize runFile over the name type. 2019-10-11 11:03:50 -04:00
Rob Rix
12739872c5
Generalize concreteAnalysis over the name type. 2019-10-11 11:02:31 -04:00
Rob Rix
d62dc3c5cf
Generalize lookupConcrete over the name type. 2019-10-11 11:01:38 -04:00
Rob Rix
e7aefb8186
Generalize addressStyle over the name type. 2019-10-11 11:00:14 -04:00
Rob Rix
0eb9edf2ef
Generalize heapAddressGraph over the name type. 2019-10-11 10:59:19 -04:00
Rob Rix
264d33816b
Generalize heapValueGraph over the name type. 2019-10-11 10:59:08 -04:00
Rob Rix
c0a995f612
Generalize heapGraph over the name type. 2019-10-11 10:58:51 -04:00
Rob Rix
b697d187c7
Generalize EdgeType over the name type. 2019-10-11 10:58:20 -04:00
Rob Rix
fd793d7d7d
Generalize Env over the name type. 2019-10-11 10:57:40 -04:00
Rob Rix
3cad92a4e1
Generalize Heap over the name type. 2019-10-11 10:56:45 -04:00
Rob Rix
5974e82819
Generalize Concrete over the name type. 2019-10-11 10:55:31 -04:00
Rob Rix
541ef22076
Parameterize Analysis by the type of names. 2019-10-11 10:49:32 -04:00
Rob Rix
b6a9eeaf6b
Rename Analysis.Eval to Core.Eval. 2019-10-11 10:46:59 -04:00
Rob Rix
253116a46f
Merge branch 'core-factoring' into eliminate-core-loc 2019-10-11 10:23:43 -04:00
Rob Rix
5b238d8c50
Don’t re-export Analysis. 2019-10-11 10:23:31 -04:00
Rob Rix
9c8350db48
Merge branch 'core-factoring' into eliminate-core-loc 2019-10-11 10:22:41 -04:00
Rob Rix
f06af1755b
📝 Analysis. 2019-10-11 10:21:30 -04:00
Rob Rix
43d5516528
Move Analysis into its own module. 2019-10-11 10:20:34 -04:00
Rob Rix
05d9dab6d8
Stub in a module for the Analysis type. 2019-10-11 10:17:55 -04:00
Rob Rix
59d6deb005
🔥 a redundant import. 2019-10-11 09:15:32 -04:00
Rob Rix
57ab84bb46
Weaken a Carrier constraint to Applicative. 2019-10-11 09:15:26 -04:00
Rob Rix
ba23138ade
🔥 a redundant constraint. 2019-10-11 09:15:17 -04:00
Rob Rix
cce6f74b95
🔥 a redundant import. 2019-10-11 09:13:48 -04:00
Rob Rix
d16a3c909c
Weaken a Carrier constraint to Applicative. 2019-10-11 09:13:30 -04:00
Rob Rix
9b48331945
🔥 a redundant constraint. 2019-10-11 09:13:20 -04:00
Rob Rix
b99b9f90df
Merge branch 'core-factoring' into eliminate-core-loc 2019-10-10 20:43:11 -04:00
Rob Rix
1b7acb2411
Add a missing dependency. 2019-10-10 20:43:00 -04:00
Rob Rix
a046690bd0
Correct a doctest. 2019-10-10 20:42:02 -04:00
Rob Rix
c2bb05fe25
🔥 Core.Loc. 2019-10-10 18:09:02 -04:00
Rob Rix
a87e62309d
Merge branch 'core-factoring' into eliminate-core-loc 2019-10-10 18:06:17 -04:00
Rob Rix
13fec83cba
Rename Spec to Test. 2019-10-10 18:05:50 -04:00
Rob Rix
ab1932c264
Use File.fromBody. 2019-10-10 18:04:20 -04:00
Rob Rix
585848658a
Core.Core doesn’t depend on Core.Loc. 2019-10-10 17:57:26 -04:00
Rob Rix
d679f28760
File.fromBody doesn’t depend on Core.Loc. 2019-10-10 17:50:25 -04:00
Rob Rix
e177ea7eab
Rename fromGHCSrcLoc to fromSrcLoc. 2019-10-10 17:40:42 -04:00
Rob Rix
c31b151ba8
🔥 Core.Loc.Path. 2019-10-10 17:33:56 -04:00
Rob Rix
aee5f5110c
Sort imports. 2019-10-10 17:23:03 -04:00
Rob Rix
f9a92e76a9
🔥 UnliftIOToMonadException. 2019-10-10 17:22:18 -04:00
Rob Rix
b709219b77
Don’t allow messages to be sent to the InputT. 2019-10-10 16:53:03 -04:00
Rob Rix
2e61978b98
🔥 println. 2019-10-10 16:10:24 -04:00