diff options
Diffstat (limited to 'src/parser.hpp')
-rw-r--r-- | src/parser.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 0cd6b38..6d21796 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -33,7 +33,7 @@ namespace solar { -enum token_t { +enum parser_token_t { TOK_TERM = 1, TOK_NONTERM, TOK_BLOCK, @@ -41,18 +41,18 @@ enum token_t { TOK_UINT, }; -typedef struct value { +typedef struct parser_value { char *str; uint64_t number; const char *error; -} value_t; +} parser_value_t; typedef struct parser parser_t; parser_t * parser_alloc(void); -int parser_push(parser_t *parser, int token, const value_t *value, parser_state_t *state); +int parser_push(parser_t *parser, int token, const parser_value_t *value, parser_state_t *state); void parser_free(parser_t *parser); } |