Commit Graph

8 Commits

Author SHA1 Message Date
anna 6c83d52053
ast: cargo fmt 2022-08-07 06:30:51 +02:00
anna d9df6df402
add loops 2022-07-29 05:11:53 +02:00
anna 620be5dba1
add functions 2022-07-29 04:05:59 +02:00
anna cb98c78b37
add support for if statements 2022-07-28 19:52:15 +02:00
anna e33c2022c5
ast: add expression support
This adds the basic set of expressions:
assignments, binary/unary expressions, function
calls, and array accesses.  Binary operator
precedence is also taken into account.  What's
still missing are parenthesized expressions, but
those should be easy to do.
2022-07-27 19:43:26 +02:00
anna 7b7cd933d3
rename module to target
To avoid potential confusion with Rust modules,
gaybuild's modules are now called targets.
2022-07-24 15:37:46 +02:00
anna 8a0d22fbf0
test: add explanatory comments 2022-07-24 14:04:13 +02:00
anna 8ae3bb2f57
add lexer and test file
There are most likely gonna be a lot of changes
until we reach the final syntax, but this is a
good start i think.
2022-07-10 21:56:00 +02:00