[antlr-interest] Testing a grammar
shmuel siegel
antlr at shmuelhome.mine.nu
Wed Mar 15 12:02:45 PST 2006
Martin Probst wrote:
>> I have a more general problem namely I wrote a grammar and now I want
>> to test it, which means I need test cases so that every posibility of
>> the grammar is covered by one test case.
>
> I think Terence wrote something like that once, a tool that generates
> random and meaningless, but syntactically correct, expressions from your
> grammar. Maybe in the filesharing section?
>
> Martin
>
That strikes me as something that might test the program that uses the
parser but it would hardly test the parser. After all, the test input is
guaranteed to obey the rules of the parser.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.3/281 - Release Date: 3/14/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.3/281 - Release Date: 3/14/2006
More information about the antlr-interest
mailing list