Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 6, 2006, 3:02 pm
rate this thread
Re: How to parse a new computer language in Perl?
If someone has already experience with lex & yacc (the preferred U*X
tools for this kind of work), I'd suggest Parse::Lex and Parse::Yapp.
Mainly Parse::Yapp creates the same bottom-up parser as yacc does
(Parse::RecDescent creates top-down parsers) and allows to use
the same (almost) unchanged yacc grammar (rule) descriptions!
Code examples for both parsers can be found in "Advanced Perl
Programming, 2nd edition" (O' Reilly 2005, ISBN 0-596-00456-7).
Ing Ferry Bolhar
Magistrat der Stadt Wien - MA 14