syntax definition language

Jonathan M Davis jmdavisProg at gmx.com
Sun Oct 23 05:07:06 PDT 2011


On Sunday, October 23, 2011 15:58:36 Gor Gyolchanyan wrote:
> Hi, guys!
> Can anyone tell me what's the name of this syntax definition language,
> used here: http://www.d-programming-language.org/lex.htm ?

It looks to me like it's using a variant of BNF just like pretty much every 
other language grammar. It's using : instead of ::=, and it puts each option 
in a rule on its own line rather than using |, but it's still basically BNF.

http://en.wikipedia.org/wiki/Backus–Naur_Form

- Jonathan M Davis


More information about the Digitalmars-d mailing list