Commit Graph
18 Commits
Author SHA1 Message Date
glm94 2570c5cac0 Made some chanegs to the tokenizer to understand hexadecimal formatted numbers, along with some more language grammar primitives. 2022-01-23 21:54:06 -06:00
glm94 019a7f44a8 Cleaned up the tokenizer and setting the stage for more granular token types. 2022-01-21 21:17:37 +00:00
glm94 0636315166 Starting to get a basic structure for tokenizing. Currently TK_Number tokens are being generated successfully. 2022-01-21 19:35:32 +00:00
glm94 72f6ec12e0 Tokenizing now strips the double quotes from strings, leaving only the intended value. 2022-01-20 22:10:48 +00:00
glm94 b32e1bad7c Fixed some bugs in the string tokenizer. 2022-01-20 21:21:18 +00:00
glm94 23d4bd8089 Included a check for commas in the whitespace splitter. Might rename that function but this is all just testing before refactoring so I won't rename things just yet. 2022-01-20 19:48:24 +00:00
glm94 99ebd82996 Experimenting with tokenizing strings. This commit just focuses on splitting strings up by whitespace. 2022-01-20 18:17:58 +00:00
glm94 479dc57ea8 Code cleanup in the List code. Possibly saved myself some headache in the future by using the right pointer type in the struct definition. 2022-01-18 16:28:49 +00:00
glm94 929f2a7f4b Made the List generic, though more care needs to be taken when using it since memory leaks can happen when structs are used with it. 2022-01-17 17:21:40 +00:00
glm94 2c18b593ab Expanded the assembly test code partially, and added some ideas on how to encode instructions. 2022-01-07 21:37:32 +00:00
glm94 8656ba7d0c Fixed a bug where the last character of a line would be lost when generating a list of string tokens. 2022-01-05 22:51:56 +00:00
glm94 0b46ac2f54 Added some error handling in the List functions. Just trying to get a feel for how to handle memory allocation failures in C. 2022-01-05 16:51:26 +00:00
glm94 2d3b6f1858 Changed the signatures of some of the List functions to have the 'const' contract. I feel this makes more sense to have since these functions are to not modify all or some of their parameters. Plus it just feels right to have them defined this way. 2022-01-05 16:02:06 +00:00
glm94 08acc6af22 First stage of splitting up a source line complete. Next is tokenizing the list of string being generated. 2021-12-30 15:21:09 -06:00
glm94 4be3a4a7ea Changed the 'AddListItem' function to make a copy of the char array that its sent to make the caller's life a bit easier. 2021-12-30 14:56:36 -06:00
glm94 168d8e1548 Created a list structure for strings. Should work for splitting lines of text up just before they're tokenized. 2021-12-30 14:28:02 -06:00
glm94 9c6b1d9057 Added very simple parsing logic. 2021-12-28 20:48:09 +00:00
glm94 5162804270 Initial commit, can read from a list of files passed. 2021-12-28 20:09:33 +00:00