PHP Grammar

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

PHP Grammar

Post by SidewinderX »

Is there a defined (EBNF) grammar for PHP? Can't seem to find one.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: PHP Grammar

Post by McInfo »

http://www.icosaedro.it/articoli/php-syntax.html

If you don't speak Italian, run it through Google Translate.

Edit: This post was recovered from search engine cache.
Last edited by McInfo on Wed Jun 16, 2010 2:03 pm, edited 1 time in total.
User avatar
prometheuzz
Forum Regular
Posts: 779
Joined: Fri Apr 04, 2008 5:51 am

Re: PHP Grammar

Post by prometheuzz »

Note that although there is an ISO for EBNF notation somewhere, there are many variations. That said, this: http://www.phpcompiler.org/doc/latest/g ... ct-grammar looks like EBNF-ish to me...
Post Reply