You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a grammar for a certain file format withPyCharm and the ANTLR4 plugin. I also "tested" this grammar with PyCharms "ANTLR Preview" feature on files with ~100k lines and everything looks fine. In a simple example, one would get:
However, whenever I try to manually parse a file with the generated code (both in C# or Py3), I get a different behaviour for some CarriageReturns:
line 1:0 mismatched input 'dataset\r' expecting 'dataset'
Unfortunately, the grammar is quite comprehensive and I need some more hours to extract the minimal example from it. However, I also recognized that there have been some differences between C# and JAVA output, as mentioned here:
Could someone of you tell me if 'my' problem could be related to these issues? Would it for example make sense to step back to an older version of ANTLR and the ANTLR runtime, either for the purpose of debugging or to get things working in the first place?
Thank you very much!
The text was updated successfully, but these errors were encountered:
Le 23 juin 2021 à 06:37, DerIltis ***@***.***> a écrit :
Dear all,
I created a grammar for a certain file format withPyCharm and the ANTLR4 plugin. I also "tested" this grammar with PyCharms "ANTLR Preview" feature on files with ~100k lines and everything looks fine. In a simple example, one would get:
However, whenever I try to manually parse a file with the generated code (both in C# or Py3), I get a different behaviour for some CarriageReturns:
line 1:0 mismatched input 'dataset\r' expecting 'dataset'
Unfortunately, the grammar is quite comprehensive and I need some more hours to extract the minimal example from it. However, I also recognized that there have been some differences between C# and JAVA output, as mentioned here:
#3112
Could someone of you tell me if 'my' problem could be related to these issues? Would it for example make sense to step back to an older version of ANTLR and the ANTLR runtime, either for the purpose of debugging or to get things working in the first place?
Thank you very much!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Dear all,
I created a grammar for a certain file format withPyCharm and the ANTLR4 plugin. I also "tested" this grammar with PyCharms "ANTLR Preview" feature on files with ~100k lines and everything looks fine. In a simple example, one would get:
However, whenever I try to manually parse a file with the generated code (both in C# or Py3), I get a different behaviour for some CarriageReturns:
line 1:0 mismatched input 'dataset\r' expecting 'dataset'
Unfortunately, the grammar is quite comprehensive and I need some more hours to extract the minimal example from it. However, I also recognized that there have been some differences between C# and JAVA output, as mentioned here:
#3112
Could someone of you tell me if 'my' problem could be related to these issues? Would it for example make sense to step back to an older version of ANTLR and the ANTLR runtime, either for the purpose of debugging or to get things working in the first place?
Thank you very much!
The text was updated successfully, but these errors were encountered: