Commit graph

21 commits

Author SHA1 Message Date
1f91d214ee Implement Ocaml-style return 2022-02-08 01:22:49 +09:00
7cddc45e8b Removed some exceptions 2022-02-08 01:00:36 +09:00
36fd3de4e7 Merge Eval and Env 2022-02-08 00:46:43 +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
765ac6f004 Add Env module 2022-02-01 02:20:48 +09:00
c33fd366ee Add basic function evaluation 2022-01-29 20:01:48 +09:00
b699ed6b2f refactor lex 2022-01-28 01:52:57 +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
7b9ccd1328 Add var table 2022-01-20 01:35:18 +09:00
856c2b359e Add ans 2022-01-19 14:17:04 +09:00
aba76688be Refactor value 2022-01-18 16:52:33 +09:00
61b70f02f1 Add error handling for Token_not_found 2022-01-17 15:21:47 +09:00
dd2a1e160e Add mod (working) and exp (not eval'ed yet) 2022-01-13 01:13:41 +09:00
b05605558c Refactor REPL 2022-01-13 00:54:40 +09:00
6444f413ca Few things 2022-01-11 01:05:29 +09:00
dae562047c Add error handling 2022-01-11 00:45:25 +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