Re: parser generator for php
| From: | Alan Knowles | Date: | Thu, 27 Feb 2003 02:05:25 +0000 |
| Subject: | Re: parser generator for php | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94611@lists.php.net to get a copy of this message | ||
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