Matched tokens being marked as error
See original GitHub issueI found a case where the parser is marking matched tokens found inside error nodes as an error. For instance, given the malformed expression 1 * 2 +++
, this is the resulting tree:
However, it’s the expected tree:
Notice that the operators +
are being marked as an error in the first tree, although they have being recognized as operators.
It worth noting that the former tree was generated using the TestRig, while the latter is a screenshot of the tree generated in the IntelliJ plugin. This issue is most likely related to antlr/intellij-plugin-v4#180.
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (23 by maintainers)
Top Results From Across the Web
matching an unwanted token in Antlr for error reporting
You can't really have a successful parse without all of the input being recognized and tokenized. (A failure to tokenize it, will result...
Read more >Mint-made errors - Wikipedia
Mint-made errors are errors during the minting process. Groups of coins with distinctive ... Being unique does not mean that an error is...
Read more >Troubleshooting Invalid Access Tokens - Twilio Support
The most common error codes for Access Tokens are due to incorrect account data or timestamp issues: Error 20103 Invalid Access Token issuer/subject;...
Read more >Rule-based matching · spaCy Usage Documentation
Find phrases and tokens, and match entities. ... let you define sequences of tokens to be matched, e.g. one or more punctuation marks,...
Read more >My cost basis / return / capital gain / market value is incorrect ...
In some cases a transfer is mismatched and needs to be edited manually to ensure that the correct sides of the transaction are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As soon as I get home I’ll provide small grammar that shows up this bug and then we discuss the best way to fix it.
@parrt https://github.com/antlr/antlr4/commit/b11ff9636aacd028f87a15e75b3927a0b7c67d20 fixes https://github.com/marcospassos/antlr4/commit/c5c987b99f735561b13bdc4b8ea8283ddfe3b39e. Thank you very much!