1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
Commit Graph

19255 Commits

Author SHA1 Message Date
Rob Rix
fb7946714c Unify equal types. 2018-03-13 15:33:18 -04:00
Rob Rix
b40eda1551 liftComparison promotes its operands. 2018-03-13 15:32:46 -04:00
Rob Rix
a6b4e5490a Eval using [] to print the last value. 2018-03-13 15:32:23 -04:00
Rob Rix
b8a31a21fb Add a typechecking entry point for TypeScript. 2018-03-13 15:31:36 -04:00
Rob Rix
6c5650b950 Merge remote-tracking branch 'origin/while-evaluation' into evaluate-for-loops 2018-03-13 15:06:47 -04:00
Patrick Thomson
6f9a6cb6b8 Evaluatable instance for symbols.
Deferring the decision on whether to intern symbols to some later date
when we really get into the weeds re. Ruby semantics.
2018-03-13 14:45:20 -04:00
Patrick Thomson
d84e5d2043 otiose comments 2018-03-13 13:41:29 -04:00
Patrick Thomson
dffab93724 add for loops too, why not 2018-03-13 13:37:27 -04:00
Rob Rix
3a6ed6ff0c Merge remote-tracking branch 'origin/while-evaluation' into evaluate-for-loops 2018-03-13 13:28:03 -04:00
Patrick Thomson
76e22f79cc unused import and pragma 2018-03-13 13:02:33 -04:00
Patrick Thomson
b6a0494d2f Merge remote-tracking branch 'origin/master' into while-evaluation 2018-03-13 13:01:22 -04:00
Patrick Thomson
88a909690a unused import 2018-03-13 13:00:48 -04:00
Patrick Thomson
0cdcba6778 for real this time 2018-03-13 12:59:45 -04:00
Ayman Nadeem
8adefeebb0 Merge pull request #1544 from github/grammar-guide
Grammar development guide for semantic code team
2018-03-13 09:54:44 -07:00
Patrick Thomson
837b59f763 fix Type's implementation of liftComparison 2018-03-13 12:50:11 -04:00
Ayman Nadeem
8371d88d69 Merge branch 'master' into grammar-guide 2018-03-13 09:47:24 -07:00
Rob Rix
77a51026cf Define Evaluatable for TermF point-free. 2018-03-13 12:45:40 -04:00
Rob Rix
e1788b5ff1 📝 the use of foldMap1/nonEmpty. 2018-03-13 12:45:12 -04:00
Patrick Thomson
75215da112 document liftComparison 2018-03-13 12:44:24 -04:00
Rob Rix
40adaf2b3b Move require/load from Data.Abstract.Evaluatable to Control.Abstract.Analysis. 2018-03-13 12:42:33 -04:00
Patrick Thomson
fb67b923f5 merge cruft and rework ordering -> int mapping 2018-03-13 12:41:40 -04:00
Rob Rix
0956d571b8 🔥 redundant MonadValue constraints on require/load. 2018-03-13 12:39:22 -04:00
Patrick Thomson
bbda9bdbbc Merge remote-tracking branch 'origin/master' into while-evaluation 2018-03-13 12:33:20 -04:00
Rob Rix
6d6d49f9c1 🔥 interface/environment. 2018-03-13 12:30:22 -04:00
Rob Rix
0b96b5e987 Get the global environment instead of pulling it from the value type. 2018-03-13 12:30:17 -04:00
Patrick Thomson
1590210ae3 Merge remote-tracking branch 'origin/master' into while-evaluation 2018-03-13 12:30:10 -04:00
Patrick Thomson
9ff28c4434 Merge pull request #1547 from github/boolean-arithmetic-evaluation
Implement evaluation over Arithmetic and Boolean operations.
2018-03-13 12:29:34 -04:00
Rob Rix
ee65c191bd Don’t modify the environment in the monad. 2018-03-13 12:29:17 -04:00
Patrick Thomson
2bcc40edc1 generalize while and dowhile 2018-03-13 12:25:57 -04:00
Rob Rix
1572445844 Use RequiredEffects to tidy up the type signatures of evaluate/evaluates. 2018-03-13 12:21:17 -04:00
Patrick Thomson
74f3eb249b fix error printing 2018-03-13 12:19:26 -04:00
Patrick Thomson
53ff529822 Merge remote-tracking branch 'origin/master' into boolean-arithmetic-evaluation 2018-03-13 12:14:59 -04:00
Patrick Thomson
4d7b683f6c rename au and kill evalToBool 2018-03-13 12:14:26 -04:00
Rob Rix
a93c75f8a2 Evaluate [] using Imperative & foldMap1. 2018-03-13 12:05:11 -04:00
Rob Rix
6f10d8aa83 Evaluate Module and Program using Imperative. 2018-03-13 12:04:48 -04:00
Patrick Thomson
3c5ab01f95 implement while and dowhile 2018-03-13 12:04:24 -04:00
Rob Rix
f709237e37 Depend on semigroupoids for Foldable1. 2018-03-13 11:58:54 -04:00
Rob Rix
2e0244c215 Extend the local environment, to retain parameters. 2018-03-13 11:50:50 -04:00
Rob Rix
030c23c7f8 foldMap makes this a lot easier to reason about. 2018-03-13 11:50:04 -04:00
Patrick Thomson
2a68fbdb17 implement the generalized comparison operator 2018-03-13 11:42:49 -04:00
Rob Rix
51514f1e52 Simplify bindEnv using the Reducer instance. 2018-03-13 11:34:30 -04:00
Rob Rix
3f18765cd5 Derive a Reducer instance for Environment. 2018-03-13 11:30:03 -04:00
Rob Rix
83376c7277 🔥 envUnion. 2018-03-13 11:27:46 -04:00
Ayman Nadeem
e44e1028c8 Merge pull request #1554 from github/why-tree-sitter
Create why-tree-sitter.md
2018-03-13 08:23:19 -07:00
Rob Rix
c34d378759 Define a Semigroup for imperative contexts. 2018-03-13 11:22:59 -04:00
Patrick Thomson
ac3a79ccbf change liftNumeric to be over Values 2018-03-13 11:21:05 -04:00
Patrick Thomson
807be3af29 Merge remote-tracking branch 'origin/master' into boolean-arithmetic-evaluation 2018-03-13 11:19:14 -04:00
Ayman Nadeem
c165d2ec2e Merge branch 'master' into why-tree-sitter 2018-03-13 08:16:41 -07:00
Patrick Thomson
a36ce7e4e3 change liftNumeric to be over Values 2018-03-13 11:16:07 -04:00
Rob Rix
d136112abe Use putGlobalEnv instead of modifyGlobalEnv with const. 2018-03-13 11:08:25 -04:00