Module: Dhall::Parser::LetBinding

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



491
492
493
494
495
496
497
498
# File 'lib/dhall/parser.rb', line 491

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