Exemplo n.º 1
0
def _lift_group_decl(location, *args):
    if len(args) == 2:
        id, group_defn = args
        return Group(id, group_defn.instances, location)
    group_defn = args[0]
    return Group(instances=group_defn.instances, location=location)
Exemplo n.º 2
0
def _lift_group_defn(location, *instances):
    return Group(instances=list(instances), location=location)
Exemplo n.º 3
0
def p_group_block(t):
    '''group_block : LBRACE group_defn RBRACE'''
    t[0] = Group(instances=t[2])