Commit graph

16 commits

Author SHA1 Message Date
8711fde112 Parser - Support for if statement
* Different from the book's implemenation as it doesn't use additional parens
2023-01-01 11:04:32 +01:00
7d22b15854 Parser - Support for blocks 2022-12-31 17:05:58 +01:00
71ddef17d8 Parser - Fixed error recovery 2022-12-31 16:42:32 +01:00
5efc90e89b Parser - Error recovery 2022-12-31 16:40:59 +01:00
3a2e8eeda1 Parser - Variable assignment 2022-12-31 16:27:32 +01:00
157c938395 AST - Store variable names as tokens in declarations 2022-12-31 16:06:20 +01:00
d821331fa2 Parser - Variable references in expressions 2022-12-31 15:44:26 +01:00
447e0fe623 Parser - Handle variable declarations 2022-12-31 15:39:52 +01:00
14aef73d93 Interpreter - Run programs. 2022-12-31 15:19:41 +01:00
bf11a2b63a Parser - Parse program as a list of statements 2022-12-31 14:45:55 +01:00
7b66c35e16 Parser - Synchronize method 2022-12-31 12:27:51 +01:00
980729ceb3 Tokens - Renamed EOF to Eof 2022-12-31 10:17:25 +01:00
45ed237818 Parser - Removed useless clone 2022-12-31 10:14:58 +01:00
1e122c77a5 Parser - Comments 2022-12-31 10:12:11 +01:00
fc345f2ffb Parser - Parse expressions 2022-12-31 00:50:31 +01:00
ed03d565ea Parser - Created structure 2022-12-30 23:50:33 +01:00