compiler in php..

From: Date: Mon, 19 May 2003 18:04:38 +0000
Subject: compiler in php..
Groups: php.general 
Request: Send a blank email to php-general+get-148188@lists.php.net to get a copy of this message
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?

« previous php.general (#148188) next »