5.6 Grammar

gram  ::=  line | line gram
line  ::=  precoper idlist ;
line  ::=  %rel ID precoper ID ;
line  ::=  ID -> rhslist ;
line  ::=  code SRCCODE
precoper  ::=  %left | %right | %nonassoc | %pref | %gt
rhslist  ::=  optprec rhsellist optcode
rhslist  ::=  rhslist ALT optprec rhsellist optcode
optcode  ::=  SRCCODE
optcode  ::= 
rhsellist  ::=  rhsellist rhsel
rhsellist  ::= 
rhsel  ::=  ID
rhsel  ::=  ( rhslist )
rhsel  ::=  rhsel *
rhsel  ::=  rhsel +
rhsel  ::=  rhsel ?
idlist  ::=  idlist ID
idlist  ::= 
optprec  ::=  %prec ( ID )
optprec  ::= 
Download entire grammar as text.

See the PyGgy Home Page.