[antlr-interest] How many here are using ANTLR Testing?
Jeremy Frens
jdfrens at gmail.com
Wed Jun 24 11:37:23 PDT 2009
I'm the author of ANTLR Testing (http://antlr-testing.sourceforge.net/), and
I'm curious how many people here (or anywhere) use it. I've gotten a few
emails from people who've found it and like it. Now that I'm looking for a
job in industry (after 12+ years in academia), I'm thinking potential
employers might like to know how many are using my library.
For those unfamiliar with the library, it takes a JUnit approach to testing
grammars from ANTLR. (Unlike gUnit which uses a DSL written with ANTLR for
testing.) ANTLR Testing (the laziest name for a library, ever) provides
specialized assertion methods for tokens and ASTs. Its real strength is
using Java's reflection to scan, parse, and tree parse with a fluent
interface. As an example:
assertTree(
MyOwnParser.EXPRESSION, // assert type of root
"(+(1)(x))", // assert preorder traversal of AST
myTester.scanInput("1 + x").parseAs("expression"));
I'm happy to add new features if you like what you see but doesn't quite do
what you want.
jdf
--
Jeremy D. Frens
jdfrens at gmail.com
http://www.norecess.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090624/3da4e0b0/attachment.html
More information about the antlr-interest
mailing list