1# This file contains definitions of statement grammar 2 3def p_statement_assign(t): 4 'statement : NAME EQUALS expression' 5 names[t[1]] = t[3] 6 7def p_statement_expr(t): 8 'statement : expression' 9 t[0] = t[1] 10