Lots of changes and too much dragging my feet on this. But I think this is going in the right direction now.
This commit is contained in:
@@ -5,12 +5,17 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include "opcodes.h"
|
||||
#include "keywords.h"
|
||||
|
||||
typedef enum {
|
||||
Empty,
|
||||
String,
|
||||
Number,
|
||||
Symbol,
|
||||
Register,
|
||||
Mnemonic,
|
||||
Keyword,
|
||||
LineEnd = '\n',
|
||||
Colon = ':',
|
||||
Comma = ',',
|
||||
@@ -32,6 +37,9 @@ typedef struct _token {
|
||||
char Operator[8];
|
||||
char* String;
|
||||
int Number;
|
||||
Mnemonics Mnemonic;
|
||||
Registers Register;
|
||||
Keywords Keyword;
|
||||
} Value;
|
||||
int LineNumber;
|
||||
int ColumnNumber;
|
||||
|
||||
Reference in New Issue
Block a user