#ifndef PARSER_H #define PARSER_H #include #include #include #include "types.h" #include "lexer.h" // Creates a new GroundProgram GroundProgram createGroundProgram(); // Adds instruction (instruction) to GroundProgram (gp) void addInstructionToProgram(GroundProgram* gp, GroundInstruction instruction); // Frees all GroundInstructions in GroundProgram (gp) void freeGroundProgram(GroundProgram* gp); // Parses the file into a GroundProgram GroundProgram parseFile(const char* file); #endif