Rob Rix
bb81dd0ee1
Drop an obsolete stripAnnotations.
2019-10-10 14:11:34 -04:00
Rob Rix
a1a6270c01
🔥 Path annotations.
2019-10-10 14:10:35 -04:00
Rob Rix
61a2cd396b
🔥 some Path annotations.
2019-10-10 14:09:30 -04:00
Rob Rix
c19a373bf3
Fix the tests.
2019-10-10 14:06:47 -04:00
Rob Rix
1e326d7fb8
Don’t re-export Trifecta.
2019-10-10 14:05:59 -04:00
Rob Rix
6681639dd5
Rearrange stripAnnotations’ type parameters.
2019-10-10 14:05:50 -04:00
Rob Rix
8880278961
🔥 Loc.
2019-10-10 13:56:22 -04:00
Rob Rix
20c6d12b03
🔥 a redundant language extension.
2019-10-10 13:55:52 -04:00
Rob Rix
31b1eae78e
🔥 interactive.
2019-10-10 13:55:13 -04:00
Rob Rix
177fb8d05c
Correct a doctest.
2019-10-10 13:52:07 -04:00
Rob Rix
5433cad022
Store local Refs.
2019-10-10 13:51:18 -04:00
Rob Rix
f15feb0ca3
🔥 askLoc.
2019-10-10 13:49:36 -04:00
Rob Rix
ef36ded16c
Inline the Loc into Ref.
2019-10-10 13:48:39 -04:00
Rob Rix
e2092e8a52
Inline the Loc into Decl.
2019-10-10 13:47:12 -04:00
Rob Rix
5b4a1d3d9d
Inline the Loc into Concrete.
2019-10-10 13:44:45 -04:00
Rob Rix
5dd2b1185d
Inline the Loc into Semi.
2019-10-10 13:44:00 -04:00
Rob Rix
e949f88517
🔥 fileLoc.
2019-10-10 13:41:55 -04:00
Rob Rix
4ca2990346
Revert "Rename Control.Carrier.Fail.WithLoc to .WithFile."
...
This reverts commit 4c58f0877e
.
2019-10-10 13:41:17 -04:00
Rob Rix
c414161679
Revert "Return the message in a File."
...
This reverts commit 1ec98e9c05
.
2019-10-10 13:41:14 -04:00
Rob Rix
1ec98e9c05
Return the message in a File.
2019-10-10 13:40:49 -04:00
Rob Rix
4c58f0877e
Rename Control.Carrier.Fail.WithLoc to .WithFile.
2019-10-10 13:38:56 -04:00
Rob Rix
6a0be9cf09
Split up Loc annotations.
2019-10-10 13:36:58 -04:00
Rob Rix
200c3edf77
Evaluate doubly-annotated terms.
2019-10-10 13:30:01 -04:00
Rob Rix
dfceb329f9
Split Loc annotations into separate Path & Span readers.
2019-10-10 13:26:09 -04:00
Rob Rix
c97c8c7e12
Inline Loc into File.
2019-10-10 13:12:32 -04:00
Rob Rix
d044ea2fc4
Add a newtype wrapper around Path.
2019-10-10 13:08:14 -04:00
Rob Rix
2be7c29dad
Parameterize Ann with the annotation type.
2019-10-10 13:06:02 -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
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
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
375c975338
Use compileCC to build a record of toplevel bindings.
2019-09-23 11:56:40 -04:00
Rob Rix
7d1567e70a
🔥 a bunch of redundant hidden imports.
2019-09-20 16:45:12 -04:00
Patrick Thomson
d9f88fc046
Add a CHECK-TREE directive and simplify esoteric jq tests.
...
Due to the problems outlined in #245 , the tests for return statements
were complicated and not testing useful properties. This patch adds a
new `CHECK-TREE` directive which lets you embed a Core expression
as a string, which is parsed and then compared against the result of
compiling the containing module.
2019-09-18 18:07:43 -04:00
Patrick Thomson
da5bb84b05
Remove tree-sitter dependency from semantic-core.
2019-09-18 13:49:04 -04:00
Patrick Thomson
302add6c5e
Define annWith with annAt.
2019-09-18 13:43:36 -04:00
Patrick Thomson
962cd5d5de
Restore spacing.
2019-09-18 13:43:31 -04:00
Patrick Thomson
4d21791ae4
Add Data.Core.annAt.
2019-09-18 11:51:31 -04:00
Patrick Thomson
60fa4c82ab
Add Data.Loc.fromTSSpan.
...
We'll probably change this so that Unmarshal can do this for us, but
this implementation will suffice for now.
2019-09-18 11:50:53 -04:00
Patrick Thomson
1c5ac83791
Corral orphan instances.
2019-08-27 11:27:53 -04:00
Patrick Thomson
811f693051
Use Analysis.ScopeGraph instead of my bad reimplementation
2019-08-16 15:54:17 -04:00
Patrick Thomson
90dd0b4d33
Trying to bring up this test harness
2019-08-16 12:34:56 -04:00
Rob Rix
d3726fa9e2
Merge branch 'scope-graphs' into re-name
2019-08-06 15:08:56 -04:00