Re: [PHP-DEV] parser generator for php
[email protected] (Alan Knowles)
| Newsgroups | php.dev |
|---|---|
| Message-ID | <[email protected]> |
Pete James wrote: >I hope that this is not the wrong venue for this. > >I've seen references to questions about this before, but is there any >tool similar to yacc, written in php? > It's not written in PHP - but it generates PHP code have a look at http://php-sharp.sourceforge.net In CVS is phpLex a derivative of csLex (requires mono/.net runtime) phpJay a derivative of Jay (a bison type grammer parser) There are a few examples in the PHPSharp folder. look for .lex & .jay files. phpLex is a bit better tested as I've been using it on HTML_Template_Flexy as well.. Regards Alan > >I know that there is the tokenizer ext., which forms one half of the >equation. Perl, Python, etc, have their YAPP, and YAPPS tools. Is >something similar in the works for PHP? > >Thanks, >Pete. > > -- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com