def p_global_stmt(p): """ global_stmt : GLOBAL global_list SEMI | GLOBAL ident EQ expr SEMI """ p[0] = node.global_stmt(p[2]) for ident in p[0]: ident.props = "G" # G=global
def p_global_stmt(p): """ global_stmt : GLOBAL global_list SEMI | GLOBAL ident EQ expr SEMI """ p[0] = node.global_stmt(p[2]) for ident in p[0]: ident.props="G" # G=global
def p_global_stmt(p): "global_stmt : GLOBAL global_list SEMI" p[0] = node.global_stmt(p[2])