Garritt McCune glm94
  • Joined on 2020-12-03
glm94 pushed to refactor at glm94/clox 2022-03-02 15:43:32 -06:00
7bf7304bd4 Attempting to print the expression tree. I think the printing code is fine but the Parser is bugged and not building the tree correctly.
glm94 pushed to refactor at glm94/clox 2022-03-02 15:25:06 -06:00
221d575c16 Further refactoring done. The Parser runs without crashing, however it's output is still to be checked and verified.
glm94 pushed to refactor at glm94/clox 2022-03-02 14:53:02 -06:00
e20ccb8cfb The Scanner has been refactored and some responsibilities were pulled from it. Confirmed working, the Parser still needs to be touched on however.
glm94 created branch refactor in glm94/clox 2022-03-02 14:53:02 -06:00
glm94 pushed to main at glm94/clox 2022-03-01 18:45:37 -06:00
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.
glm94 pushed to main at glm94/clox 2022-02-28 14:14:12 -06:00
41a04094e2 Added untested parser code, meaning most of chapter 6 has been implemented (but most likely, very poorly).
glm94 pushed to main at glm94/assm-test 2022-02-23 15:30:56 -06:00
1968590654 Add a file utility to allow me to read in an entire file instead of doing so line by line.
glm94 pushed to main at glm94/assm-test 2022-02-22 21:09:12 -06:00
1fd5c3af57 Fixed a bug with the opcode and register types not being set correctly.
glm94 pushed to main at glm94/clox 2022-02-22 14:12:21 -06:00
b72645aed0 Did a bit of refactoring and fixed the syntax so the union structs all have proper names.
glm94 pushed to main at glm94/clox 2022-02-22 13:30:55 -06:00
693519a248 Starting chapter 5 now. This is the first part needed to start implementing the syntax tree.
glm94 pushed to main at glm94/assm-test 2022-02-17 21:36:05 -06:00
19021ff782 Modified how registers and opcodes are represented. This commit is a bit buggy but doesn't crash and burn at least. I just wanted the new structs push out before making a bigger mess of things as I try to organize this all.
glm94 pushed to main at glm94/clox 2022-02-17 15:52:34 -06:00
227d566261 Not the cleanest way to do this but added in keyword detection.
glm94 pushed to main at glm94/clox 2022-02-15 10:32:49 -06:00
c55a3434de Implemented identifier detection but keywords in the programming language aren't detected yet.
glm94 pushed to main at glm94/clox 2022-02-15 09:59:25 -06:00
aa7dff31ff Implemented number parsing.
glm94 pushed to main at glm94/clox 2022-02-14 13:38:57 -06:00
f1a468aebc Added support for string literals.
glm94 pushed to main at glm94/clox 2022-02-14 11:21:46 -06:00
5b90c98123 Fixed the '!=' detection bug.
glm94 pushed to main at glm94/clox 2022-02-14 11:06:38 -06:00
db54e8f888 Added Peek() and Match() as well as a bugged '!=' detection.
glm94 pushed to main at glm94/clox 2022-02-10 11:17:44 -06:00
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.
glm94 pushed to main at glm94/clox 2022-02-09 15:48:04 -06:00
2d84019e58 Created the list structure for the tokens to be stored and some helper functions.
glm94 pushed to main at glm94/clox 2022-02-09 13:54:05 -06:00
d6a3935588 Setup a skeleton for the scanner.