aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 5e72619..a41a62c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -43,7 +43,8 @@ main(int argc, char *argv[])
struct token token;
while (lex(&lexer, &token) != T_EOF) {
printf("%d", token.token);
- if (token.token == T_IDENT || token.token == T_NAME) {
+ if (token.token == T_IDENT || token.token == T_NAME
+ || token.token == T_STRING) {
printf(" %s", token.info.str);
} else if (token.token == T_NUMBER
&& token.info.num.isfloat) {