Grammar for PHP
| From: | Dominic Fox | Date: | Sun, 28 Nov 2004 13:28:42 +0000 |
| Subject: | Grammar for PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-203004@lists.php.net to get a copy of this message | ||
Hi,
I would like to parse some PHP files to extract some information about
them. Is there a formal grammar (EBNF or other) anywhere that I could
use as a reference?
I'd like to write the parser myself (in Haskell), so existing PHP
parsers (in PHP itself, for instance) aren't quite what I'm looking
for.
thanks,
Dominic
--
// Dream in black and white -
// model cities, shooting up in the air