Exemplo n.º 1
0
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])
Exemplo n.º 2
0
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])