Rework compound type handling:
[cparser] / token.c
diff --git a/token.c b/token.c
index 94ac183..0d5e164 100644 (file)
--- a/token.c
+++ b/token.c
@@ -119,6 +119,11 @@ void print_token_type(FILE *f, token_type_t token_type)
        }
 }
 
+symbol_t *get_token_symbol(const token_t *token)
+{
+       return token_symbols[token->type];
+}
+
 void print_token(FILE *f, const token_t *token)
 {
        switch(token->type) {