Commit Graph
17 Commits
Author SHA1 Message Date
glm94 6daaaae7c2 Fixed a bug when the scanner parses a number and creates the token. 2022-03-16 00:00:17 -05:00
glm94 b072921304 Touched up the Scanner. Refactored the Interpreter some more, this time it's able to be run on simple expressions. String concatenation can be performed by the Interpreter however, numbers and Booleans are not being stored correctly in the Object structures. 2022-03-15 20:50:08 +00:00
glm94 d4dd459389 Fixed a bug with string parsing in the Scanner. 2022-03-15 18:37:25 +00:00
glm94 5ea8079090 Updated the token to more reflect what was implemented in the book. Maybe not the right way to handle it but perhaps this setup will come in handy in later chapters. 2022-03-03 19:39:12 +00:00
glm94 d039a26c16 Fixed some bugs with the Scanner and Parser. 2022-03-02 22:30:53 -06:00
glm94 221d575c16 Further refactoring done. The Parser runs without crashing, however it's output is still to be checked and verified. 2022-03-02 21:24:58 +00:00
glm94 e20ccb8cfb The Scanner has been refactored and some responsibilities were pulled from it. Confirmed working, the Parser still needs to be touched on however. 2022-03-02 20:52:40 +00:00
glm94 1b33468343 Added a Makefile, removed the build script and had to modify the function names for either the scanner or parser so they didn't collide. Refactoring should be the next step here. 2022-03-01 18:03:57 +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