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 writing a converter from ANTLR to another format. To test this converter I used Grammarinator and a parser generator to fuzz my conversion and verify if it can parse every word.
I have encountered the following problem:
When using the NOT feature of ANTLR, Grammarinator generates invalid words.
Now all possible words should come out like >a< or >6<, but the word >,< is not valid because we don't allow a comma with the NOT feature.
I tested different variants for the No_comma rule to match the ANTLR documentation both as lexer and parser rules, in every run Grammarinator still outputs invalid words.
Finding this error took me a lot of time, because I first looked for the error in my converter. Even if it is not fixed, it would be very nice to confirm it so that I can be sure.
Used versions:
Grammarinator19.3
antlr-4.9.3-complete.jar
Python 3.7
Thanks a lot,
38b394ce01
The text was updated successfully, but these errors were encountered:
Hey,
I'm writing a converter from ANTLR to another format. To test this converter I used Grammarinator and a parser generator to fuzz my conversion and verify if it can parse every word.
I have encountered the following problem:
When using the NOT feature of ANTLR, Grammarinator generates invalid words.
Consider the following ANTLR grammar not.g4
Now all possible words should come out like
>a<
or>6<
, but the word>,<
is not valid because we don't allow a comma with the NOT feature.I tested different variants for the
No_comma
rule to match the ANTLR documentation both as lexer and parser rules, in every run Grammarinator still outputs invalid words.Finding this error took me a lot of time, because I first looked for the error in my converter. Even if it is not fixed, it would be very nice to confirm it so that I can be sure.
Used versions:
Grammarinator19.3
antlr-4.9.3-complete.jar
Python 3.7
Thanks a lot,
38b394ce01
The text was updated successfully, but these errors were encountered: