Re: Bison, Flex To Output PHP parser/compiler.

From: Date: Thu, 22 Aug 2002 14:11:56 +0000
Subject: Re: Bison, Flex To Output PHP parser/compiler.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-87289@lists.php.net to get a copy of this message
Johan Jordaan wrote:
Hi, I'm new to this list, so hi to everybody out there :) I think this msg would be reaching the intended audience, but if I'm wrong let me know :) It's probably not a bad audience :)
I've been playing around with flex/bison a little the last couple of days. I've got this stupid idea to modify flex/bison to emit a compiler/parser as native PHP as opposed to C code. Does anybody know if this has been attempted or of there is any value in it except the fact that it would be Kewl :) the tokenizer will emit the elements of php code (in a similar way to flex/bison)
bcompiler (pear.php.net) has a callback feature that can show you all the opcodes in php - I did it to play about with writing a PHP->C converter, (not that simple).. somewhere between the two, you may find what you are looking for. regards Alan
Thanks ------------------------ Johan Jordaan BB&D


« previous php.dev (#87289) next »