diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-03 23:09:59 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-03 23:09:59 +0800 |
commit | c66dc142d240ec2e2ae78201d9614de76535be38 (patch) | |
tree | c9df286951328d7a477415946e8000beef6843ad /parser.cpp | |
parent | e462669c3c3cc04ea29420e14dbb589899d201ec (diff) |
C++ version now works!
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 == ")") |