Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
buzz_syntax_bnf [2016/04/17 03:09]
ilpincy [Buzz Syntax BNF Specification]
buzz_syntax_bnf [2017/11/09 13:17] (current)
root [Grammar]
Line 58: Line 58:
  
   conditionlist ​     ::= condition | conditionlist TOKLISTSEP condition   conditionlist ​     ::= condition | conditionlist TOKLISTSEP condition
-  condition ​         ::= comparison | condition TOKANDOR comparison¬†+  condition ​         ::= comparison | condition TOKANDOR comparison ​| NOT condition¬†
-  comparison ​        ::​= ​TOKPAROPEN condition TOKPARCLOSE | NOT comparison | expression | expression TOKCMP expression+  comparison ​        ::= expression | expression TOKCMP expression
  
   expression ​        ::= product | expression TOKADDSUB product   expression ​        ::= product | expression TOKADDSUB product
Line 66: Line 66:
   power              ::= operand powerrest   power              ::= operand powerrest
   powerrest ​         ::= <nil> | TOKPOW power   powerrest ​         ::= <nil> | TOKPOW power
-  operand ​           ::= TOKNIL | TOKCONST | TOKSTRING | TOKPAROPEN ​expression ​TOKPARCLOSE | TOKADDSUB power | idref | lambda | tabledef+  operand ​           ::= TOKNIL | TOKCONST | TOKSTRING | TOKPAROPEN ​condition ​TOKPARCLOSE | TOKADDSUB power | idref | lambda | tabledef
  
   command ​           ::= idref | idref assignment | TOKRETURN expression   command ​           ::= idref | idref assignment | TOKRETURN expression