e69d4208df
Updated the parser and setup the opcodes.c file to include helper functions to build up an Opcode object. I don't like how this is setup at the moment but seems to be a decent way to handle things for now.
main
glm942025-10-16 23:43:15 -05:00
013925e2ba
Added StringVAppend to append via a format and va_args list.
glm942025-06-30 23:52:49 -05:00
1475601f6a
Marked the sync functions as noreturn so GCC knows this and fixed an incorrect function call to ParserExpectList.
glm942025-06-29 23:00:23 -05:00
c86c424c6f
Create a simple, Pascal like, string to help create messages for the parser. Added a function in the Parser that accepts many TokenTypes and reports the list of types if a sync is required.
glm942025-06-29 22:25:09 -05:00
39320c7b69
Added back a way to stringify the TokenType. Updated the way the Parser syncs and added the start of parsing of opcodes.
glm942025-06-28 23:59:14 -05:00
428556a7a1
Updated the parser to be able to correctly sync via a longjmp. Fixed a few bugs in the tokenizer, like not allowing underscores in symbol / label names and taught it how to detect a label declaration. Fixed the code that gets the register name.
glm942025-06-26 23:24:03 -05:00
3a5788f4ab
Cleaned up the TokenStringify function and started toying with ways to handle syncing in the parser.
glm942025-06-26 00:36:37 -05:00
b759589e84
Lots of changes and too much dragging my feet on this. But I think this is going in the right direction now.
glm942025-06-24 23:48:26 -05:00
ebfd7cf94c
Fixed a bug where the tokenizer wasn't parsing hexadecimal numbers correctly. Added support for tokenizing the colon and comma characters.
glm942025-01-08 23:22:43 -06:00
428d674f54
Cleaned up the TokenStringify function a bit (ignore the returning of a local variable) and updated the tokenizer to better handle new lines.
glm942025-01-08 02:40:05 -06:00
6d3f90183e
Added support for number literals and punctuation.
glm942025-01-08 01:39:10 -06:00
6039918707
Added support for string literals in the tokenizer.
glm942025-01-08 00:26:08 -06:00
7e70c6fd19
Created a tokenizer and the supporting code, currently processes text that is not a string literal.
glm942025-01-07 23:52:03 -06:00
2c85077031
Added / started some infrastructure / boilerplate code.
glm942024-10-30 00:28:11 -05:00