Re: compiler in php..
| From: | Rasmus Lerdorf | Date: | Mon, 19 May 2003 18:09:34 +0000 |
| Subject: | Re: compiler in php.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148189@lists.php.net to get a copy of this message | ||
php.net/tokenizer
On Mon, 19 May 2003, Aric Caley wrote:
> I'm trying to write a simple compiler in php. Actualy it will be more akin
> to C's preprocessor with similar syntax. I've been trying to find a php
> version of Yacc or other tools to aid in making such a compiler *in* php,
> but I can't find anything.
>
> I figure I will need a basic tree datastructure class to put the parsed
> commands into, but I can't find one suitable (the pear tree class seems like
> overkill as I dont need to save or load the tree data from xml or a db).
>
> Anybody got any ideas on how to make a simple C-like preprocessor for php,
> written in php?
>
>
>
>