13 Commits

Author SHA1 Message Date
788c4a8e82 Implement assignment as binop 2022-01-28 18:56:16 +01:00
7646177030 Implement variable declaration 2022-01-28 18:49:30 +01:00
b128b3357a Update grammar definition 2022-01-28 15:11:46 +01:00
4d5188d9d6 Implement relational binops
- Gt: Greater than
- Ge: Greater or equal
- Lt: Less than
- Le: Less or equal
2022-01-28 15:07:28 +01:00
6816392173 Implement equ, neq comparison 2022-01-28 14:46:55 +01:00
3c6fb5466e Implement unary negation 2022-01-28 14:21:57 +01:00
74dbf724a5 Implement parentheses grouping 2022-01-28 14:11:39 +01:00
807482583a Update grammar definition 2022-01-28 14:00:51 +01:00
6b91264f84 Implement more operators
- Mod
- Bitwise Or
- Bitwise And
- Bitwise Xor
- Shift Left
- Shift Right
2022-01-27 23:15:16 +01:00
d9246c7ea1 Implement div & sub 2022-01-27 22:29:06 +01:00
39dd5e81f2 Start implementing interpreter
- Implemented tree-walk-interpreter for expressions only
- Binops Add, Mul
- Value Types I64
2022-01-02 21:58:10 +01:00
ef4dee98dc Add test for parser 2022-01-02 21:28:36 +01:00
541d905551 Start implementing Parser
- Implemented pratt parser for expressions
- Implemented BinOps Add, Mul
2022-01-02 21:03:14 +01:00