diff options
author | Camil Staps | 2016-08-28 15:53:04 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-28 15:53:04 +0200 |
commit | 1237de832250ef81076ff9647bd68ad0eded32ea (patch) | |
tree | f236268e580ea26ab0941c29a8234d11d2b8ae8a /interpreter/print.c | |
parent | fuspelc -> fuspel (diff) |
Adds an import construct; resolves #1
Diffstat (limited to 'interpreter/print.c')
-rw-r--r-- | interpreter/print.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/interpreter/print.c b/interpreter/print.c index 3f17475..d700101 100644 --- a/interpreter/print.c +++ b/interpreter/print.c @@ -16,9 +16,8 @@ void print_token(token* tk) { case TOKEN_EQUALS: c = '='; break; case TOKEN_COMMA: c = ','; break; case TOKEN_STRICT: c = '!'; break; - case TOKEN_CODE: - printf("code "); - return; + case TOKEN_CODE: printf("code "); return; + case TOKEN_IMPORT: printf("import "); return; case TOKEN_NAME: printf("%s", (char*) tk->var); return; |