def p_named_function(p): '''named_function : NAME '[' args_list assignment_list pos_nl INTO pos_nl expr pos_nl ']' ''' p[0] = function(p[1], p[3], p[4], p[8])
def p_lambda(p): '''lambda : '[' args_list assignment_list pos_nl INTO pos_nl expr pos_nl ']' ''' p[0] = function(None, p[2], p[3], p[7])