3130736057
Parse program
2022-11-20 18:10:15 +01:00
ea7518b183
Create each main parser only once
2022-11-19 20:56:10 +01:00
b291619d10
Remove unnecessary Clone bounds
2022-11-19 19:36:10 +01:00
ff3edf17e5
Parse anonymous function definitions
2022-11-19 19:13:30 +01:00
9a1bb92dfe
Prepare parser for function definitions
2022-11-19 18:58:39 +01:00
9c8d09e3cb
Box pub parsers and adjust visibility
2022-11-19 13:00:43 +01:00
408219073a
Parse binary operators
...
For now, they're all left associative.
2022-11-19 12:40:52 +01:00
63f8026007
Parse arithmetic and logical negation
2022-11-19 11:58:52 +01:00
73e32252c4
Parse table destructuring
2022-11-18 21:44:25 +01:00
a559966c1d
Split up parser
...
The structure mostly follows the ast structure, with some slight
changes. Each parser submodule documents which ast submodule it
corresponds to.
This parser is not yet complete, and I have yet to go through its
modules one-by-one to fix and complete them.
2022-11-18 20:20:37 +01:00
4e94c13351
Add todo
2022-11-18 18:59:22 +01:00
63a33b47a1
Parse field access suffix
2022-11-18 14:59:21 +01:00
23a126cbfd
Parse parenthesized expressions
2022-11-18 14:33:15 +01:00
629eca7409
Parse variable identifier assignment expressions
2022-11-18 14:23:31 +01:00
621a829d1d
Parse variable assignment expressions
2022-11-18 14:20:29 +01:00
fb2d1c14b1
Parse variable identifier expressions
2022-11-18 14:15:50 +01:00
27bc69806a
Parse variable expressions
2022-11-18 14:12:10 +01:00
13413702ed
Parse basic expressions
2022-11-18 14:11:50 +01:00
274ed8b3ca
Parse table constructors
2022-11-18 14:00:48 +01:00
6bf1c8f7d1
Parse literals
2022-11-18 13:49:49 +01:00
1d02ff4480
Parse table literals
2022-11-18 13:25:07 +01:00
ee832588ac
Parse numeric literals
2022-11-18 12:55:02 +01:00
932af88c84
Parse ident
2022-11-18 12:24:01 +01:00
e9d2602cd6
Parse space without comments
2022-11-18 12:20:00 +01:00
0cb667f2cd
Parse table constructors
2022-11-17 19:07:33 +01:00
ad91e3b3fb
Parse literals except string literals
2022-11-17 18:47:22 +01:00
5b24bd7b79
Parse table literals
2022-11-17 18:20:44 +01:00
7f0f886fb7
Parse positive numeric literals
2022-11-17 18:20:26 +01:00
f1eca2be57
Parse ident
2022-11-17 15:56:38 +01:00
c593e4c872
Parse simple number literal
2022-11-17 11:02:39 +01:00