Ken Domino
Ken Domino
Operator precedence and associativity in the grammar are implemented using a Floyd operator precedence set of rules. It looks like it hasn't been fully implemented. https://docs.octave.org/latest/Operator-Precedence.html https://chatgpt.com/share/67daa088-26e0-8007-a3c1-bb5605189173 It looks like...
> Antlr-style" means defining operator preferences in one same rule? Yes. There is no formal definition of how Antlr recognizes the pattern. It's stated imprecisely here: https://github.com/antlr/antlr4/blob/master/doc/left-recursion.md Generally, each alt...
> I'm surprised you didn't find more ambiguities. The language itself is ambiguous, and I did my best to resolve it. Yes, the grammar has a bit of ambiguity. The...
You don't give the input. It's impossible to answer. Likely, your input does not parse, but we can't do anything without the input to "see" the parse tree.
The parse fails on line 2. The parse tree is incomplete. I would recommend that you introduce a "comment" mode in the lexer. There is no way your changes can...
It doesn't work because the input does not parse. (You should print out the parse tree, parse result, and tokens for your input.) You could fix this by inserting a...
The picture posted is cropped so it's not clear what IDE the poster is using. But it looks like Intellij with the Antlr plug in. This is because there are...
All we see is that there are red squiggles denoting errors in an IDE of the .g4 file, not of a Python3 input file. In other words we don't see...
Here's a [PR](https://github.com/antlr/grammars-v4/pull/4417) with the build and test of python3_13. https://github.com/antlr/grammars-v4/actions/runs/13388160812/job/37389572122?pr=4417. I even tested it locally on my machine. ``` 02/18-05:28:06 ~/issues/g4-4416/python/python3_13 $ dotnet tool restore Tool 'trcaret' (version '0.23.11')...
> I don't know if the problem is with the lexer or my code. You're going to have to debug your environment, your IDE. This has nothing to do with...