diff options
author | Pedro Souza <pedro@masba.net> | 2024-04-03 06:34:09 -0300 |
---|---|---|
committer | Pedro Souza <pedro@masba.net> | 2024-04-03 06:34:09 -0300 |
commit | 4adade92f2b4f59ff09bbbd056f6ea2e366730ed (patch) | |
tree | dd3e92d71d1994b61ae90d23cae46dc7c1284b6f /bu-parser.h | |
parent | 00ec031cb2ac7b9afda1cda97c91187a7a47e23a (diff) |
done with bu-parser
Diffstat (limited to 'bu-parser.h')
-rw-r--r-- | bu-parser.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bu-parser.h b/bu-parser.h index 0aff194..7dc7034 100644 --- a/bu-parser.h +++ b/bu-parser.h @@ -23,10 +23,7 @@ enum parser_state { PARSER_ERR = -1, PARSER_READY = 0, - PARSER_OR_OP, - PARSER_AND_OP, - PARSER_NOT_OP, - PARSER_OK, + PARSER_ACCEPT, }; enum token_id { @@ -73,5 +70,6 @@ struct expr_parser { struct expr_parser expr_parser_init(lexer_fn src, void* lex_data); void expr_parser_finish(struct expr_parser *ep); int expr_parser_run(struct expr_parser *ep); +void expr_parser_debug_print(FILE *stream, struct expr_parser *ep); #endif // BU_PARSER_HG |