1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00
Commit Graph

264 Commits

Author SHA1 Message Date
joshvera
a2026e8ada Add valueRef tests back 2018-12-05 12:44:52 -05:00
joshvera
73ae9f85a1 Deref slots in evalRubyProject
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-12-05 12:12:13 -05:00
joshvera
781e52f843 Format and remove Environment 2018-12-05 10:14:16 -05:00
joshvera
debefff57c Differentiate between Import and Superclass edge tests 2018-12-04 11:24:01 -05:00
joshvera
766f9bd018 Look in Classes for objectMembers 2018-12-04 10:35:52 -05:00
joshvera
b35e1a0718 change Address to Slot in tests 2018-11-29 20:16:29 -05:00
joshvera
17c4bf350c Add lookupObjectMembers function to tests 2018-11-29 19:37:20 -05:00
joshvera
68697419ec Export traceShowM and traceM from SpecHelpers 2018-11-29 13:01:11 -05:00
Rick Winfrey
c350ae7377 TraceByIgnoringC 2018-11-28 16:55:26 -08:00
joshvera
65a8949a06 Fix the shape of scope and heap outputs in testEvaluating
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-28 18:47:10 -05:00
joshvera
456efeca9d Change the order of ModuleResult 2018-11-28 17:27:42 -05:00
Rick Winfrey
d44169b6f6 Merge branch 'master' into heap-frames 2018-11-27 08:32:00 -08:00
Rob Rix
51d5719632 Decode the bytes in Verbatim. 2018-11-26 15:19:12 -05:00
joshvera
7ade83a367 objectMembers
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 13:06:01 -05:00
Rick Winfrey
66d3044951 Merge branch 'master' into heap-frames 2018-11-15 13:44:06 -08:00
joshvera
dba7f17d48 spoke too soon
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-14 19:20:35 -05:00
joshvera
680681f944 fix up EvalError in tests
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-14 19:19:42 -05:00
joshvera
f6bfec2d96 the tests compile! 2018-11-08 18:22:35 -05:00
joshvera
20cf855423 return a list of values from lookupDeclaration
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-08 12:56:08 -05:00
joshvera
22bdbdfafe Fix up import conflicts
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-08 12:55:42 -05:00
joshvera
0c35a8a95c Start fixing up tests
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-07 18:27:56 -05:00
joshvera
f51d3a90a8 Run ScopeGraph and Heap in tests
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-07 14:09:18 -05:00
Timothy Clem
0f56f33f24 Introduce some symbol/tags tests 2018-11-02 13:55:30 -07:00
Rob Rix
131cae4d7b Merge branch 'master' into higher-order-effects 2018-10-24 14:04:13 -04:00
Rob Rix
ee1491ab51 Fix namespaceScope. 2018-10-24 10:06:22 -04:00
Rob Rix
090a395bb6 Fix up the carrier type. 2018-10-24 10:05:22 -04:00
Rob Rix
780d0a478b Rename the carrier. 2018-10-24 10:01:49 -04:00
Rob Rix
46ca8ac121 Fix a bunch of handlers. 2018-10-24 09:59:57 -04:00
Rob Rix
de9e610a2f Correct the name of the Trace carrier. 2018-10-24 09:58:35 -04:00
Rob Rix
ce37fd58f1 Fix some imports. 2018-10-24 09:58:06 -04:00
Rob Rix
739426de50 Fix a couple of handlers. 2018-10-24 09:47:14 -04:00
Patrick Thomson
ef696d3c41 Split up Semantic.IO.
This looks like a big patch, but it's very straightforward: no
behavior has changed.

After the umpteenth time spent hitting a compile error because I
passed a `FilePath` rather than a `File` to `readBlobFromPath`, I
decided to finally make the needed refactors to Semantic.IO, and to
split off the `File` type and `Files` effect. This patch:

* adds the `MonadIO` class to `Prologue`'s export list
* moves `File` into `Data.File`
* moves `Handle` into `Data.Handle`
* moves `Files` into `Semantic.Task.Files`
* moves functions for reading blobs into `Data.Blob`
* keeps general IO helpers in Semantic.IO
* renames `readFile` to `readBlobFromFile`
* renames `readBlobFromPath` to `readBlobFromFile'`

This should have a positive effect on compile times and ease of
navigation throughout the codebase.
2018-10-23 15:37:49 -04:00
Rob Rix
c9e6912068 Port most of the system over to higher-order-effects. 2018-10-16 18:48:08 -04:00
Rob Rix
5c2dac35e8 Merge branch 'master' into first-order-closures 2018-09-27 13:37:25 -05:00
Rob Rix
0653832d9d Swap the order of the parameters to Value. 2018-09-25 16:38:05 -05:00
Rob Rix
f3c20a8fad ConcreteEff is no more. 2018-09-25 13:40:07 -05:00
Timothy Clem
278e6890cd Fix up the tests 2018-09-25 11:18:51 -05:00
Rob Rix
c6769d2e01 Resume using a first-order definition of functions. 2018-09-21 14:42:57 -04:00
Rob Rix
038b56970e Parameterize Evaluator by the term type. 2018-09-20 12:43:59 -04:00
joshvera
eb71b512b3 Fix test type errors 2018-09-14 18:04:08 -04:00
Rob Rix
90b29a39ab Add a missing import. 2018-08-15 12:08:15 -04:00
Rob Rix
358b8cc564 Replace UtilEff with ConcreteEff. 2018-08-15 11:55:45 -04:00
joshvera
75365e9caa Merge remote-tracking branch 'origin/master' into interactive-debugger 2018-08-13 16:40:27 -04:00
joshvera
2732f17719 Merge remote-tracking branch 'origin/master' into interactive-debugger 2018-08-10 14:20:16 -04:00
Rob Rix
d05f3c6ae3 🔥 Data.Abstract.Address. 2018-08-10 13:46:24 -04:00
Rob Rix
55acc78d83 Fix up the specs. 2018-08-09 15:51:55 -04:00
Rob Rix
0def4afbab Specialize Heap to Set. 2018-08-09 15:40:42 -04:00
Rob Rix
c1254d54b8 🔥 Cell. 2018-08-09 15:30:50 -04:00
Rick Winfrey
77c8867907 No longer need these imports 2018-08-08 10:31:59 -07:00
Rick Winfrey
383b6208ee Rename ErrorContext -> BaseError 2018-08-07 16:50:55 -07:00
Rick Winfrey
cdedb5d893 Update tests 2018-08-07 10:48:01 -07:00
Rick Winfrey
00a24473c7 Update tests 2018-08-06 15:10:59 -07:00
Rick Winfrey
823ae6ac51 Merge branch 'master' into error-context 2018-08-06 13:46:42 -07:00
Rick Winfrey
5b9dca6400 Wrap UnspecializedError with BaseError 2018-08-06 11:50:49 -07:00
Rick Winfrey
37d197bb21 Wrap SpecHelpers errors in BaseError 2018-08-03 16:59:34 -07:00
Rob Rix
8c9debbd17 Fix up the specs. 2018-08-03 14:14:08 -04:00
Rob Rix
f2fcbf93f4 Generalize UtilEff over the trailing effects. 2018-08-03 11:18:03 -04:00
Rob Rix
5368f859eb Whoops.
Co-Authored-By: Ayman Nadeem <aymannadeem@gmail.com>
2018-08-01 15:22:37 -04:00
Charlie Somerville
de80f1906e fix SpecHelpers to hit heap for namespaces 2018-07-19 17:03:17 +10:00
Charlie Somerville
a3bc96834c Merge branch 'master' into charliesome/module-result 2018-07-18 14:53:31 +10:00
Charlie Somerville
6837b1d637 names takes a Binding, not an Environment 2018-07-17 12:04:54 +10:00
Charlie Somerville
752e29c9ef use ModuleResult type alias here too 2018-07-17 11:42:01 +10:00
Patrick Thomson
ae550c59c8 Merge remote-tracking branch 'origin/master' into abstract-call-graph 2018-07-13 11:11:46 -04:00
Rob Rix
255a0aa62b Move TaskConfig into Semantic.Util. 2018-07-10 14:09:02 -04:00
Rob Rix
b33daf0ce1 Pass the task config stuff around as a single datum. 2018-07-10 13:49:34 -04:00
Rob Rix
90cb86d027 Pass config & queues to the integration specs. 2018-07-09 14:26:15 -04:00
Patrick Thomson
c5b722dbba Merge remote-tracking branch 'origin/master' into abstract-call-graph 2018-07-09 11:28:24 -04:00
Rob Rix
bcbc70446c Merge branch 'charliesome/substitution' into abstract-abstract-semantics 2018-07-05 14:15:01 -04:00
Rob Rix
5100670e72 Rename Data.Abstract.Value to Data.Abstract.Value.Concrete. 2018-07-03 14:22:26 -04:00
Patrick Thomson
1eed347da6 fix the specs 2018-06-29 16:17:27 -04:00
Rob Rix
a236328056 Merge branch 'master' into higher-order-effects 2018-06-26 15:14:28 -04:00
Rob Rix
7d37d3eb11 Resume defining LoopControl as using Exc. 2018-06-26 12:09:21 -04:00
Rob Rix
492947ae2e Resume defining Return as using Exc. 2018-06-26 12:00:25 -04:00
Rob Rix
3fb45b5d50 Preserve the structure of the data we’re testing against. 2018-06-25 12:27:30 -04:00
Rob Rix
33c04b15c3 Get the tests compiling. 2018-06-22 13:52:21 -04:00
Rob Rix
eedc8f4b7e Rearrange the spec helper to match Util. 2018-06-21 14:52:08 -04:00
Rob Rix
6abd29a65d Reuse UtilEff. 2018-06-21 13:46:28 -04:00
Rob Rix
3c537e3337 We’re in Evaluator, not TermEvaluator. 2018-06-21 13:44:58 -04:00
Rob Rix
4e57d32e91 🔥 the outdated reference to the module table state. 2018-06-21 13:36:11 -04:00
Rob Rix
418b15077a Not EvaluatingState. 2018-06-21 13:34:42 -04:00
Rob Rix
e0f5d4ee22 Don’t use evaluating. 2018-06-21 13:22:58 -04:00
Rob Rix
1e26865c65 🔥 evaluatePackageWith. 2018-06-21 13:19:24 -04:00
Rob Rix
e972abd2e3 Factor runFresh out of evaluating. 2018-06-20 12:17:46 -04:00
Rob Rix
1b245278a1 🔥 the value parameter from Modules. 2018-06-18 13:18:20 -04:00
Rob Rix
9bf816db3b 🔥 the value parameter from LoadError. 2018-06-18 13:15:10 -04:00
Rob Rix
c36b04fd17 Re-export Proxy from SpecHelpers. 2018-06-18 11:11:22 -04:00
Rob Rix
792cdcc5e2 Re-export Lower from SpecHelpers. 2018-06-15 11:41:38 -04:00
Rob Rix
31893e6ced Bump effects for https://github.com/joshvera/effects/pull/54.
This requires us to specify the lists of effects fully.
2018-06-13 16:35:56 -04:00
Rob Rix
6a239acb35 🔥 redundant parens. 2018-06-13 16:26:25 -04:00
Charlie Somerville
b68d12f4e7 deref pointers to values in testEvaluating 2018-06-08 11:33:04 +10:00
Charlie Somerville
2fc9f1ca25 add type annotation to testEvaluating 2018-06-07 12:01:48 +10:00
Rob Rix
b19c381edb 🔥 the Fail effect. 2018-06-06 09:45:40 -04:00
Rob Rix
6adc5d7413 Placate hlint some more. 2018-05-30 10:33:51 -04:00
Rob Rix
282c02fbbd Embed the evaluating action into the closure body. 2018-05-28 14:11:08 -04:00
Rob Rix
a01e723b31 Run ValueErrors in TermEvaluator. 2018-05-28 09:55:01 -04:00
Rob Rix
015b74cf41 Give Value a term type parameter once more. 2018-05-28 09:35:42 -04:00
Rob Rix
2993c3588c Correct the specs. 2018-05-28 08:54:33 -04:00
Rob Rix
5ac256e340 🔨 fix the type in the spec 2018-05-24 12:09:20 -04:00
Rob Rix
2cb425dbb5 Merge branch 'master' into decompose-values 2018-05-22 15:43:51 -04:00
joshvera
378dad0d69 Merge remote-tracking branch 'origin/master' into grpc-server 2018-05-21 12:33:22 -04:00