Commit Graph
14 Commits
Author SHA1 Message Date
glm94 b72645aed0 Did a bit of refactoring and fixed the syntax so the union structs all have proper names. 2022-02-22 20:12:12 +00:00
glm94 693519a248 Starting chapter 5 now. This is the first part needed to start implementing the syntax tree. 2022-02-22 19:30:44 +00:00
glm94 227d566261 Not the cleanest way to do this but added in keyword detection. 2022-02-17 21:52:26 +00:00
glm94 c55a3434de Implemented identifier detection but keywords in the programming language aren't detected yet. 2022-02-15 16:32:35 +00:00
glm94 aa7dff31ff Implemented number parsing. 2022-02-15 15:59:17 +00:00
glm94 f1a468aebc Added support for string literals. 2022-02-14 19:38:49 +00:00
glm94 5b90c98123 Fixed the '!=' detection bug. 2022-02-14 17:21:35 +00:00
glm94 db54e8f888 Added Peek() and Match() as well as a bugged '!=' detection. 2022-02-14 17:06:30 +00:00
glm94 7bdbb9f53a Refactored the scanner and updated the Token struct to store the length of its lexeme to avoid malloc()ing new strings for every token. 2022-02-10 17:17:33 +00:00
glm94 2d84019e58 Created the list structure for the tokens to be stored and some helper functions. 2022-02-09 21:47:54 +00:00
glm94 d6a3935588 Setup a skeleton for the scanner. 2022-02-09 19:53:57 +00:00
glm94 68882d05a3 Added an interactive shell, well the start of one. 2022-02-07 19:53:29 +00:00
glm94 8dbd655c43 Implemented the file reading routine and added the skeleton for the interpreter. 2022-02-07 19:25:08 +00:00
glm94 00cad6336b Initial commit 2022-02-04 16:15:25 +00:00