diff options
Diffstat (limited to 'core/parser.c')
| -rw-r--r-- | core/parser.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/core/parser.c b/core/parser.c index a584a56..3b3e91b 100644 --- a/core/parser.c +++ b/core/parser.c @@ -30,17 +30,18 @@ * Converts numeric tokens into human readable strings */ static const char *toktab[] = { - [TT_NONE] = symtok("none"), - [TT_IDENT] = symtok("ident"), - [TT_INTLIT] = symtok("number"), - [TT_LPAREN] = qtok("("), - [TT_RPAREN] = qtok(")"), - [TT_COMMA] = qtok(","), - [TT_RETURN] = qtok("return"), - [TT_PUB] = qtok("pub"), - [TT_PROC] = qtok("proc"), - [TT_BEGIN] = qtok("begin"), - [TT_END] = qtok("end") + [TT_NONE] = symtok("none"), + [TT_IDENT] = symtok("ident"), + [TT_COMMENT] = symtok("comment"), + [TT_INTLIT] = symtok("number"), + [TT_LPAREN] = qtok("("), + [TT_RPAREN] = qtok(")"), + [TT_COMMA] = qtok(","), + [TT_RETURN] = qtok("return"), + [TT_PUB] = qtok("pub"), + [TT_PROC] = qtok("proc"), + [TT_BEGIN] = qtok("begin"), + [TT_END] = qtok("end") }; int |
