intellij-plugin-v4
does not generate parse tree upon error recovery correctly
#597
Labels
intellij-plugin-v4
does not generate parse tree upon error recovery correctly
#597
I am reading "Section 9.3: Automatic Error Recovery Strategy" of the book "The Definitive ANTLR 4 Reference" and trying the following grammar
Class
on the inputclass T { { int i; } }
.The
![image](https://user-images.githubusercontent.com/1913003/204556888-2e838db2-7a77-4a1c-8422-019b3673e6cc.png)
intellij-plugin-v4
(1.19.3-3
) generates the following parse tree in which the extraneous{
is recognized inmember
.However, the book shows the following parse tree in which the extraneous
![image](https://user-images.githubusercontent.com/1913003/204568082-2c3f7d4c-6bac-4d0a-a744-e4a9a3cade5a.png)
{
is recognized outsidemember
.According to the description of the error recovery strategy in the book, I am expecting the second parse tree.
The text was updated successfully, but these errors were encountered: