Commit Graph

11 Commits

Author SHA1 Message Date
54912b7087 feat: finish chapter 9 2025-01-16 23:44:09 +04:00
129d03b74d fix: fix comma precedence
it should be lower than assignement.
Now we can do stuff like a = 10, b = 30(before this commit we couldn't
this was a bug)
2025-01-13 08:46:39 +04:00
9262620e07 feat: finish chapter 8
challenges will be done as well, won't skip them
2025-01-13 08:25:34 +04:00
be15364e3b refactor: remove specification of operators for ternary operator
I don't plan on adding other ternary operators. So we just gonna assume
that we only have one ternary operator, which is ? !
2025-01-06 07:07:39 +04:00
50a9e062e0 feat: implement expression evaluation(ch.7)
baby steps :)

Will do the challenges as well
2025-01-06 07:03:57 +04:00
8b29a43900 refactor(literal): remove the Option wrapper for literal for Expr
Simplifies other aspect of the code. Having the LiteralType be wrapped
in an Option was a mistake (i was super sleepy when i was writing that
code :D)
2025-01-06 01:43:12 +04:00
9f903556f9 feat: implement #3 challenge for ch6
i kinda cheated, i was checking the answers and then stumbled upon the
grammar. Sorry :(
2025-01-05 06:26:31 +04:00
e54e1b1b27 feat: finish challenge #2 from the book
Implementing ternary conditional
2025-01-05 04:57:56 +04:00
8338c360e0 chore: add comment regarding grammar for comma op 2025-01-03 03:27:30 +04:00
4fd04e8fd3 feat: finish challenge #1 from chapter 6 2025-01-03 03:20:09 +04:00
91cfc0b938 feat: finish chapter 6 (implement a parser)
there are challenges, which i wish to do (need to add support for stuff)
2025-01-02 01:14:36 +04:00