diff options
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ Cons *ASTGenerator::absorb(Tokenizor *tk) { if (top_ptr > parse_stack && *parse_stack) return new Cons(*(top_ptr - 1), empty_list); string token; - tk->get_token(token); + if (!tk->get_token(token)) return NULL; if (token == "(") *top_ptr++ = NULL; // Make the beginning of a new level else if (token == ")") |