Minor code cleanup and added an extra flag to the compiler. If a symbol is a label it will now hold a reference to the opcode and by extension the offset into the file it points to.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include "opcodes.h"
|
||||
#include "token.h"
|
||||
|
||||
#define SYMBOLSTABLE_DEFAULT_CAPACITY 128
|
||||
|
||||
@@ -16,6 +17,7 @@ typedef struct {
|
||||
int Address;
|
||||
int Resolved;
|
||||
int Length;
|
||||
Token* References;
|
||||
} Symbol;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user