summaryrefslogtreecommitdiffstats
path: root/src/parse.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.hpp')
-rw-r--r--src/parse.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/parse.hpp b/src/parse.hpp
index a3ced3d..2d73755 100644
--- a/src/parse.hpp
+++ b/src/parse.hpp
@@ -3,7 +3,8 @@
#include "grammar.hpp"
-enum parse_token_t {
+
+typedef enum parse_token {
TOK_BLOCK = 256,
TOK_CHAR = 257,
TOK_SQBLOCK = 258,
@@ -11,11 +12,11 @@ enum parse_token_t {
TOK_SYMBOL = 260,
TOK_SYMBOL_LC = 261,
TOK_SYMBOL_UC = 262,
-};
+} parse_token_t;
typedef struct parse_token_value {
char c;
- std::string * str;
+ std::string *str;
} parse_token_value_t;
typedef struct parse_context parse_context_t;
@@ -23,4 +24,4 @@ typedef struct parse_context parse_context_t;
parse_context_t * parse_alloc(void *(*alloc_func)(size_t));
void parse_free(parse_context_t *parser, void (*free_func)(void *));
-int parse_push(parse_context_t *parser, int token, const parse_token_value_t *value, __attribute__((unused)) solar::grammar_t * grammar);
+int parse_push(parse_context_t *parser, int token, const parse_token_value_t *value, __attribute__((unused)) solar::grammar_t *grammar);