[PHP] Grammar for PHP

2004-11-28 Thread Dominic Fox
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

Re: [PHP] Grammar for PHP

2004-11-28 Thread Ryan King
On Nov 28, 2004, at 7:28 AM, Dominic Fox wrote: 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