|
|
308bc5b34e
|
Update README
|
2022-02-02 16:48:26 +01:00 |
|
|
|
771a858da3
|
Move ast into separate file
|
2022-02-02 16:43:14 +01:00 |
|
|
|
eebe4a4c1c
|
Move token into separate file
|
2022-02-02 16:40:05 +01:00 |
|
|
|
28d7f3ec03
|
Add example programs (project euler)
|
2022-02-02 16:26:37 +01:00 |
|
|
|
64bd2341b8
|
Refactor interpreter to use borrowed Ast
- Should have been like this from the start
- About 9x performance increase
|
2022-02-02 16:24:42 +01:00 |
|
|
|
9a7de0a1c6
|
Implement if
|
2022-02-02 16:19:46 +01:00 |
|
|
|
99e462f4b5
|
Implement print keyword
|
2022-02-02 14:05:58 +01:00 |
|
|
|
4357a1eb55
|
Update README
|
2022-01-31 23:49:22 +01:00 |
|
|
|
c4f5b89456
|
Implement loop keyword
- Loop is a combination of `while` and `for`
- `loop cond { }` acts exactly like `while`
- `loop cond; advance { }` acts like `for` without init
|
2022-01-31 16:58:46 +01:00 |
|
|
|
c49a5ec0e2
|
Implement simple CLI
- Implement running files
- Implement interactive mode
- Enable printing tokens & ast with flags
|
2022-01-31 16:24:25 +01:00 |
|
|
|
49ada446f8
|
Implement line comments
|
2022-01-29 23:29:09 +01:00 |
|
|
|
2ea2aa5203
|
Implement multi statement code
- Add statements
- Add mandatory semicolons after statements
|
2022-01-29 23:18:15 +01:00 |
|
|
|
14e8a0b507
|
Implement variables
- Assignment
- Declaration
- Identifier lexing
|
2022-01-29 22:49:15 +01:00 |
|
|
|
07636d420c
|
Slightly refactor lexer
|
2022-01-29 21:59:48 +01:00 |
|
|
|
4ad16a71f4
|
Move grammar def. to README
|
2022-01-29 21:54:05 +01:00 |
|
|
|
8488e48364
|
Update grammar
|
2022-01-29 21:52:31 +01:00 |
|
|
|
e80cae11c9
|
Implement relational binops
|
2022-01-29 21:48:55 +01:00 |
|
|
|
88ceacd500
|
Implement comparison binops
|
2022-01-29 21:37:44 +01:00 |
|
|
|
1079eb1671
|
Implement bitwise not
|
2022-01-29 21:26:14 +01:00 |
|
|
|
8a1debabe9
|
Update README
|
2022-01-29 21:18:08 +01:00 |
|
|
|
fabe3ef2ad
|
Implement unary negate
|
2022-01-29 21:12:01 +01:00 |
|
|
|
3535fec208
|
Update README
|
2022-01-29 20:52:30 +01:00 |
|
|
|
26c36ed0ae
|
Implement parenthesis grouping
|
2022-01-29 20:51:55 +01:00 |
|
|
|
807482583a
|
Update grammar definition
|
2022-01-28 14:00:51 +01:00 |
|
|
|
7b86fecc6f
|
Update README
|
2022-01-28 12:20:59 +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 |
|
|
|
1c4943828f
|
Number separator _
|
2022-01-27 21:38:58 +01:00 |
|
|
|
7a69efc240
|
Add test for interpreter
|
2022-01-02 22:02:31 +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 |
|
|
|
02f63ad9ad
|
Add test for lexer
|
2022-01-02 18:49:18 +01:00 |
|
|
|
01729beb5f
|
Start implementing lexer
|
2022-01-02 18:44:05 +01:00 |
|
|
|
41348cf4c2
|
Initial commit
|
2022-01-02 18:43:30 +01:00 |
|