Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
def p_global_stmt(p):
    "global_stmt : GLOBAL global_list SEMI"
    p[0] = node.global_stmt(p[2])