23 lines
391 B
C
23 lines
391 B
C
#ifndef PARSER_H
|
|
#define PARSER_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdarg.h>
|
|
#include "list.h"
|
|
#include "token.h"
|
|
#include "opcodes.h"
|
|
#include "symbols_table.h"
|
|
|
|
//#define HIGHMEMORY 65535 //64KiB - 1 AKA 0xFFFF
|
|
|
|
typedef struct {
|
|
List* Instructions;
|
|
SymbolTable* SymbolsTable;
|
|
} IRState;
|
|
|
|
IRState* ParseTokens(List*);
|
|
|
|
#endif |