diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/parser.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/parser.h b/include/parser.h index d130597..b915dfd 100644 --- a/include/parser.h +++ b/include/parser.h @@ -3,7 +3,11 @@ #include "tokenizer.h" -/* Returns 0 on success */ -int tsl_parse(const char *code, size_t code_size); +typedef enum { + TSL_PARSE_RESULT_ERR, + TSL_PARSE_RESULT_OK +} TslParseResult; + +TslParseResult tsl_parse(const char *code, size_t code_size); #endif /* TSL_PARSER_H */ |