Retain information about the lexer's lookahead for the token where an error was detected

This commit is contained in:
Max Brunsfeld 2022-02-14 22:39:52 -08:00
parent 0bdd9b640c
commit 0fb864c1a0
2 changed files with 101 additions and 96 deletions

View file

@ -128,8 +128,8 @@ int main() {
(declaration (primitive_type) (init_declarator
(identifier)
(parenthesized_expression
(number_literal)
(ERROR (number_literal))))))))
(ERROR (number_literal))
(number_literal)))))))
========================================
Extra identifiers in declarations