faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 19 people (47%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Does anyone have a segment of BNF, EBNF or Syntax Graph representations of PHP?

Sep 28th, 2005 04:32
Umberto Salsi, Tim Astle,


Here there is a BNF-like syntax of PHP 4:

http://www.csci.csusb.edu/dick/samples/php.syntax.html

A quote from that page:

<< This page was created by Paul Conrad as part of his Graduate
Independent Study (CSCI695) of the syntax and semantics of the PHP language.

This page describes the syntax of the PHP programming language based on
the definitions of the language in Programming PHP by Rasmus Lerdorf,
and Kevin Tatroe, published by O'Reilly Publishing. Since PHP is still a
rapidly evolving programming language, the syntax presented here is for
PHP 4. >>