Commit graph

30 commits

Author SHA1 Message Date
ee1afedc6c Add unit type, remove Nop 2022-02-25 21:37:49 +09:00
48ccec464e refactor externals (temp commit) 2022-02-24 02:31:29 +09:00
c2ee352f1c Add syntax sugar let f args... = ... 2022-02-23 02:45:44 +09:00
26c6f3d7bf multiple arguments for function 2022-02-22 17:01:39 +09:00
8c40e99241 Change get/set precedence/associativity to external function 2022-02-21 02:19:44 +09:00
96d0c882b3 Add fatal error on Parser 2022-02-17 02:51:56 +09:00
847375027a Change a comment slightly 2022-02-15 00:09:52 +09:00
138d12e899 Refactor function evaluation; now can partially apply 2022-02-11 02:54:21 +09:00
d5ac54365d Add closure 2022-02-09 17:27:19 +09:00
edeff67edb Add relation operators 2022-02-08 22:02:00 +09:00
a752932913 Add Bool and If 2022-02-08 16:05:33 +09:00
700356022b Add symbol type 2022-02-08 00:26:03 +09:00
05797676ce Move Value module into Env 2022-02-07 23:12:11 +09:00
995d95df41 Seperate Ast and value (which should be in Eval) 2022-02-07 01:09:57 +09:00
1dbc3f5264 Add function and external value 2022-02-01 21:38:00 +09:00
c33fd366ee Add basic function evaluation 2022-01-29 20:01:48 +09:00
282fbfa738 Merge Binop and Unary to Operator 2022-01-28 00:56:24 +09:00
bb2ee45c33 Rewrite binop 2022-01-25 15:28:38 +09:00
755052f531 Add unary negation 2022-01-23 01:20:34 +09:00
c2308d7939 Replace Token.(Values) with Token.Value of Ast.Value.t and add String type 2022-01-22 03:03:23 +09:00
2be0b7f794 Add let 2022-01-21 00:17:01 +09:00
5aaa261198 Add associativity control 2022-01-20 23:36:53 +09:00
856c2b359e Add ans 2022-01-19 14:17:04 +09:00
8e249614ee Rework Binary Expression Parser 2022-01-19 02:10:43 +09:00
aba76688be Refactor value 2022-01-18 16:52:33 +09:00
4efb65c5cd Add float 2022-01-18 15:33:56 +09:00
dd2a1e160e Add mod (working) and exp (not eval'ed yet) 2022-01-13 01:13:41 +09:00
6444f413ca Few things 2022-01-11 01:05:29 +09:00
4e0d4dd9ac Replace GADTs to normal datatypes 2022-01-10 23:28:44 +09:00
472cf4bebe Initial Commit 2022-01-10 23:27:37 +09:00