Parser is now mostly setup for the 'peek and advance' pattern. Still having infinite loop issues somewhere though.
This commit is contained in:
+5
-5
@@ -22,7 +22,7 @@ typedef enum {
|
||||
LABEL,
|
||||
NUMBER,
|
||||
//Keywords
|
||||
DB, ORG,
|
||||
DB, ORG,
|
||||
//Opcodes
|
||||
COPY, ADD, SUB, JZ, INT, YLD, RET,
|
||||
CMP, IN, OUT,
|
||||
@@ -31,10 +31,10 @@ typedef enum {
|
||||
} TokenType;
|
||||
|
||||
typedef enum {
|
||||
None,
|
||||
Reg,
|
||||
Immediate16,
|
||||
Opcode
|
||||
None = 0,
|
||||
Reg = 1,
|
||||
Immediate16 = 2,
|
||||
Opcode = 4
|
||||
} TokenClass;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user