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'm just getting started with ANTLR4 and I love the extension.
I've used the "ANTLR: Generate valid input for rule" action from the command palette quite a bit. It's useful to learn the ANTLR syntax.
Unfortunately, I think that there's a serious bug that makes negation ignored.
The following ANTLR lexer rule should produce anything but a, but in fact it produces just a. Whether or not I add the ~ doesn't matter, the result is the same. This shouldn't be the case:
grammar Bug;
// Show that negating doesn't workinit: ANOT_A;
A: 'a';
NOT_A: ~'a';
The railroad diagram is correct, but the generated "valid input" isn't.
The text was updated successfully, but these errors were encountered:
I'm just getting started with ANTLR4 and I love the extension.
I've used the "ANTLR: Generate valid input for rule" action from the command palette quite a bit. It's useful to learn the ANTLR syntax.
Unfortunately, I think that there's a serious bug that makes negation ignored.
The following ANTLR lexer rule should produce anything but
a
, but in fact it produces justa
. Whether or not I add the~
doesn't matter, the result is the same. This shouldn't be the case:The railroad diagram is correct, but the generated "valid input" isn't.
The text was updated successfully, but these errors were encountered: