Perl ANTLR v3 Target
Author

Ron Blaschke, ron at rblasch.org
Status
Early prototyping phase. Simple lexer and parser are working.
Progress
Here's a simple example. Note that everything is still subject to change.
2007-06-13
+ Escaped characters, like '\n', are now handled properly.
+ Added error handling.
Note the "no viable alternative" error message for the unrecognized '!'.
2007-06-15
+ Handle lexer actions
Here's another short example, similar to the one above. Note how whitespaces are put into the hidden channel (99) and newlines are skipped.
2007-06-26
+ Simple Parser is working
Quick, what is 2 + 2? If you can't remember here's an easy way to find out. First we need a grammar.
And here's the test program.
Finally we're getting to the answer.
2007-08-08
+ Simple expression grammar
The grammar
Test program
Test run
2008-02-23
Started real porting effort. The goal is to port one ANTLR runtime class at a time from Java to Perl, including full API coverage and documentation. First stop of the porting train: ANTLR::Runtime::BitSet.
2008-11-18
Got the first parser working: SimpleCalc, taken from the Five minute introduction to ANTLR 3.
Author
Ronald Blaschke (ron at rblasch org)
4 Comments
Hide/Show CommentsSep 18, 2007
Bernhard Wagner
Where can the ANTLR Perl modules be downloaded from ?
Thanx
Bernhard
Sep 19, 2007
Ronald Blaschke
There's currently no build for it. Please grab the latest version from http://fisheye2.cenqua.com/browse/antlr .
Ron
Apr 14, 2008
George Godik
Hi Ron
I'm interested in leveraging my current Perl infrastructure to produce a DSL for MySQL dataloading and maintenance related tasks.
Very interested in this port. Keep up the good work !
Thank you
- George
Apr 16, 2008
Ronald Blaschke
Hello George,
Many thanks for the encouraging feedback!
Ron