Module: Dhall::Parser::LetBinding

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



495
496
497
498
499
500
501
502
# File 'lib/dhall/parser.rb', line 495

def value
	exprs = captures(:expression)
	Let.new(
		var:    capture(:nonreserved_label).value,
		assign: exprs.last.value,
		type:   exprs.length > 1 ? exprs.first.value : nil
	)
end