#ifndef TSL_PARSER_H #define TSL_PARSER_H #include "tokenizer.h" #include "program.h" typedef enum { TSL_PARSE_RESULT_ERR, TSL_PARSE_RESULT_OK } TslParseResult; /* TODO: Make this function load a file instead of parsing memory. This is needed because when using @import function instead tsl, it will load a file anyways. */ TslParseResult tsl_parse(const char *code, size_t code_size, TslProgram *program_output); #endif /* TSL_PARSER_H */