35 AMP BECOMES BOF COMMA DELETE ELSE EOF EQ GE GT ID IF INT LBRACE LBRACK LE LPAREN LT MINUS NE NEW NULL NUM PCT PLUS PRINTLN RBRACE RBRACK RETURN RPAREN SEMI SLASH STAR WAIN WHILE 12 S dcl dcls expr factor lvalue procedure statement statements term test type S 38 S BOF procedure EOF procedure INT WAIN LPAREN dcl COMMA dcl RPAREN LBRACE dcls statements RETURN expr SEMI RBRACE type INT type INT STAR dcls dcls dcls dcl BECOMES NUM SEMI dcls dcls dcl BECOMES NULL SEMI dcl type ID statements statements statements statement statement lvalue BECOMES expr SEMI statement IF LPAREN test RPAREN LBRACE statements RBRACE ELSE LBRACE statements RBRACE statement WHILE LPAREN test RPAREN LBRACE statements RBRACE statement PRINTLN LPAREN expr RPAREN SEMI statement DELETE LBRACK RBRACK expr SEMI test expr EQ expr test expr NE expr test expr LT expr test expr LE expr test expr GE expr test expr GT expr expr term expr expr PLUS term expr expr MINUS term term factor term term STAR factor term term SLASH factor term term PCT factor factor ID factor NUM factor NULL factor LPAREN expr RPAREN factor AMP lvalue factor STAR factor factor NEW INT LBRACK expr RBRACK lvalue ID lvalue STAR factor lvalue LPAREN lvalue RPAREN