1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
Commit Graph

21066 Commits

Author SHA1 Message Date
Rob Rix
0aa506fae5 Extract evaluateEntryPoint to the top level. 2018-05-01 17:58:21 -04:00
Rob Rix
6069c95d1d Return Maybe from load/require. 2018-05-01 17:52:05 -04:00
Rob Rix
e8e2f0bd8a Extract evalTerm to the top level. 2018-05-01 17:15:35 -04:00
Rob Rix
7eabddf61c Use an equality constraint to simplify the context of evaluatePackageBody. 2018-05-01 15:54:20 -04:00
Rob Rix
24428f94e9 No need to scope these type variables. 2018-05-01 15:53:38 -04:00
Rob Rix
0f62131434 Provide the current package’s info statically. 2018-05-01 15:47:56 -04:00
Rob Rix
09fb3921b6 🔥 a redundant constraint. 2018-05-01 15:23:31 -04:00
Rob Rix
15daf32655 There aren’t any constrained class methods here any more. 2018-05-01 15:18:36 -04:00
Rob Rix
afddcf4e6d Remove the Recursive constraint from MonadEvaluatable. 2018-05-01 15:16:43 -04:00
Rob Rix
3d1f08d444 Remove the Evaluatable constraint from MonadEvaluatable. 2018-05-01 15:15:47 -04:00
Rob Rix
1400626b28 Provide the unevaluated module table in evaluatePackageBody. 2018-05-01 15:13:45 -04:00
Rob Rix
9a6526a881 Extract withPrelude to the top level. 2018-05-01 15:13:20 -04:00
Rob Rix
adce4b2b31 Generalize the definition of localModuleTable. 2018-05-01 10:48:15 -04:00
Rob Rix
15c4be2a38 Alienate fail that much further. 2018-05-01 09:42:49 -04:00
Rob Rix
c8d540346b Move the EvalModule constraint out of MonadEvaluatable. 2018-05-01 09:37:51 -04:00
Rob Rix
cc72724565 Note a TODO for the traceMs. 2018-05-01 09:29:32 -04:00
Rob Rix
4e15b94309 📝 the reason for the traceMs. 2018-05-01 09:28:44 -04:00
Rob Rix
490f11845d Merge branch 'master' into break-the-loop 2018-05-01 09:27:23 -04:00
Josh Vera
d35a58fc34 Merge pull request #1792 from github/ruby-self-class
Fix infinite loop when evaluating scoped environment lookups
2018-04-30 19:28:41 -04:00
Rob Rix
97f0bdf438 Haddock headers. 2018-04-30 18:25:43 -04:00
Rob Rix
ae7f180eb0 Correct a couple of hints. 2018-04-30 17:29:31 -04:00
Rob Rix
ce8258fe2c Merge branch 'master' into break-the-loop 2018-04-30 17:19:01 -04:00
Josh Vera
753f8b0367 Merge branch 'master' into ruby-self-class 2018-04-30 17:13:22 -04:00
Rob Rix
81a69905a4 Revert "Module table entries have to be non-empty."
This reverts commit 9a5e83caec105358018b05c75095743cbbe80905.
2018-04-30 17:13:03 -04:00
Rob Rix
7c9c975071 Module table entries have to be non-empty. 2018-04-30 17:11:34 -04:00
Rob Rix
405c12f574 Records can have lower bounds. 2018-04-30 17:07:18 -04:00
Rob Rix
890e6df098 Ranges and Spans have lower bounds. 2018-04-30 17:07:01 -04:00
Patrick Thomson
54544033e1 Merge pull request #1793 from github/array-indexing
Add support for array indexing.
2018-04-30 17:04:05 -04:00
Patrick Thomson
713b3ac290 Ensure we can typecheck tuple accesses. 2018-04-30 16:56:50 -04:00
Patrick Thomson
ed4ef49b70 Address Josh's comments. 2018-04-30 16:53:22 -04:00
Rob Rix
2885698962 🔥 throwLoadError. 2018-04-30 16:41:03 -04:00
Rob Rix
216b414995 LoadError doesn’t need a type parameter for the value. 2018-04-30 16:40:27 -04:00
Rob Rix
5e4745f412 Don’t export throwLoadError. 2018-04-30 16:35:50 -04:00
Rob Rix
b25c78c1a9 Weaken MonadEvaluatable to MonadEvaluator. 2018-04-30 16:32:48 -04:00
Rob Rix
b435188b2c Generalize isolate. 2018-04-30 16:32:04 -04:00
Rob Rix
e738e91fa8 🔥 redundant constraints. 2018-04-30 16:31:25 -04:00
Patrick Thomson
2067fb7459 lints 2018-04-30 16:29:39 -04:00
Rob Rix
668adb6ba1 Generalize the load & require signatures. 2018-04-30 16:25:19 -04:00
Rob Rix
38644242de Generalize the loadWith & requireWith signatures. 2018-04-30 16:23:43 -04:00
Rob Rix
e27541a7d8 Load & require use an EvalModule effect. 2018-04-30 16:20:54 -04:00
Patrick Thomson
25813e00e0 whitespace 2018-04-30 16:19:17 -04:00
Patrick Thomson
214045dd98 Add support for array indexing.
To test:

```ruby
x = [1,2,3]
x[2]
```

should yield 3.
2018-04-30 16:13:19 -04:00
joshvera
76499cd684 Remove redundant brackets 2018-04-30 15:56:38 -04:00
joshvera
dfd669a720 Merge remote-tracking branch 'origin/master' into ruby-self-class 2018-04-30 15:55:51 -04:00
Rob Rix
09ddbc1862 📝 EvalClosure. 2018-04-30 15:51:28 -04:00
Rob Rix
25eafb5c53 Rename Eval to EvalClosure. 2018-04-30 15:50:05 -04:00
joshvera
54d2b5a41e Factor out evaluateInScopedEnv 2018-04-30 15:48:49 -04:00
Rob Rix
103297c5e0 Break the dependency of Value’s MonadValue instance on MonadEvaluatable. 2018-04-30 15:45:12 -04:00
Rob Rix
74ddc8da2e Rename evaluateTerm to evaluateClosureBody. 2018-04-30 15:37:19 -04:00
joshvera
47bcf721ad Replace ScopedEnvironmentError with EnvironmentLookupError 2018-04-30 15:33:32 -04:00