//------------------------------------------------------------------------------------------------ // Test slightly more complicated expressions and statements //------------------------------------------------------------------------------------------------ // set_const ::= "{" (exp_list)? "}" {}; {1}; {a,B,c,22}; // set_former ::= "{" IDNUM (IN expression)? "|" condition "}" {a | #0}; {b in C | #1}; // assign_stat ::= (IDNUM | IDSET) "=" expression // | IDBOOL "=" condition a = 3; A = [1,2]; #c = #0; // fn_call ::= identifier "(" (exp_list)? ")" // exp_list ::= expression ("," expression)* // identifier ::= IDNUM | IDSET | IDBOOL f(); G(a); h(1,b,C,25);