glm94
|
3d4ab57f05
|
Created the skeleton for the parser.
|
2022-02-07 15:33:58 +00:00 |
|
glm94
|
7c6e5e1541
|
Last bit of clean up before building the parser.
|
2022-02-02 20:43:25 +00:00 |
|
glm94
|
d39e37b078
|
Updated the lexer to pick out some more language specific grammar.
|
2022-02-02 19:18:27 +00:00 |
|
glm94
|
7a88d6e34d
|
Added code to detect assembler directives and did some minor code clean up.
|
2022-02-01 22:07:00 -06:00 |
|
glm94
|
ebc1d30c1c
|
Added a peek function to the tokenizer.
|
2022-01-31 22:06:52 +00:00 |
|
glm94
|
f88cfda90a
|
Added a dedicated function to the tokenizer for getting string literals.
|
2022-01-31 19:15:27 +00:00 |
|
glm94
|
375fd46045
|
Split up some code to more in line with what its actually doing.
|
2022-01-27 18:20:09 +00:00 |
|
glm94
|
f88613a160
|
Expanded the tokenizer to recognize some opcodes and registers.
|
2022-01-24 17:09:02 +00:00 |
|
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 |
|