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
Hello, I am analyzing c# source code with the grammar files in grammar repository by Python target. I converted the grammar actions to Python source. When I tested the grammar by a simple example, I got ParseCancellationException. After debugging, I find that the method nextTokenOnChannel in class BufferedTokenStream is inconsistent with Java. In Python, the comment says
Return -1 if there are no tokens on channel between i and EOF.
While in Java, it says
Return the index of the EOF token if there are no tokens on channel between {@code i} and EOF.
So, which is correct? Please give a consistent version, thx.
The text was updated successfully, but these errors were encountered:
It's an inconsistency between the various runtimes.
Seems the 16/06/2014 change in the Java version was never ported to Python.
Might affect other runtimes, depending on which code base they used as a starting point.
Hello, I am analyzing c# source code with the grammar files in grammar repository by Python target. I converted the grammar actions to Python source. When I tested the grammar by a simple example, I got ParseCancellationException. After debugging, I find that the method
nextTokenOnChannel
in classBufferedTokenStream
is inconsistent with Java. In Python, the comment saysWhile in Java, it says
So, which is correct? Please give a consistent version, thx.
The text was updated successfully, but these errors were encountered: