diff options
author | Camil Staps | 2016-08-26 14:00:29 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-26 14:00:29 +0200 |
commit | 5fa8a5684cfb2456b536765b608f0883b1b90029 (patch) | |
tree | 5a85bd4c0089e7f87cabe8614ef356557cd15a63 /interpreter/parse.c | |
parent | Added eval_main (diff) |
Added strictness annotations
Diffstat (limited to 'interpreter/parse.c')
-rw-r--r-- | interpreter/parse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/interpreter/parse.c b/interpreter/parse.c index 4c5ba99..77ce731 100644 --- a/interpreter/parse.c +++ b/interpreter/parse.c @@ -19,6 +19,12 @@ token_list* parse_name(char** name, token_list* list) { token_list* parse_simple_expression(expression* expr, token_list* list) { expression* _expr; + + if (list->elem.kind == TOKEN_STRICT) { + expr->is_strict = 1; + list = list->rest; + } + switch (list->elem.kind) { case TOKEN_INT: expr->kind = EXPR_INT; |