Closed spipnl closed 2 years ago
Thank you for reporting this. Indeed, there seems to be a bug in the Java runtime impacting all versions.
Technical note: The GSS.hasEdge
method mistakenly uses the GSS generation data for nodes instead of edges, as is the case in the .Net and Rust runtime.
This issue is fixed on master. The fix will be backported to publish a version 3.5.2 of the Java runtime.
Thanks for the quick response! I have just tested it and it's working 👍
Version 3.5.2 of the Java runtime that includes this fix has been published. It will be replicated into maven central in a few minutes.
I didn't know where to find the build status of the maven package. The link in the readme leads to a 404 (https://dev.azure.com/lwouters/cenotelie/_build/latest?definitionId=6&branchName=master), so I used jitpack.io in my pom to run the latest version directly from Github and verified it that way.
Hi,
I have a simple grammar to parse a string of alternating PING and PONG terminals. The grammar looks like this:
I have generated the lexer and parser and created a simple evaluator to count the number of pings and pongs for the given input.
To test the lexer, parser and evaluator, I have created a simple unit test which works fine:
When I swap the positions of the terminal and non-terminal in the grammar (
PING pong
instead ofpong PING
):I get an exception:
This only happens when the input is four or more terminals long. I have tried multiple versions of Hime including the latest (3.5.1). Do you have any idea what could be wrong? Thanks!