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)
def _lift_group_defn(location, *instances): return Group(instances=list(instances), location=location)
def p_group_block(t): '''group_block : LBRACE group_defn RBRACE''' t[0] = Group(instances=t[2])