Files
ground/src/compiler.h

21 lines
535 B
C

#include "types.h"
#ifdef GROUND_COMPILE_WITH_TRAM
#include <tram.h>
#endif
typedef struct GroundCompilerVariable {
GroundValueType type;
char id[MAX_ID_LEN];
UT_hash_handle hh;
} GroundCompilerVariable;
typedef struct GroundState {
GroundCompilerVariable* variables;
GroundLabel* labels;
} GroundState;
void compileGroundProgram(GroundProgram* program, char* name);
#ifdef GROUND_COMPILE_WITH_TRAM
void compileGroundInstruction(GroundInstruction* instruction, Tram_Program* program, GroundState* state);
#endif