Module: DhallishGrammar::OrExpression2

Defined in:
lib/DhallishGrammar.rb

Instance Method Summary collapse

Instance Method Details

#to_nodeObject



3468
3469
3470
3471
3472
# File 'lib/DhallishGrammar.rb', line 3468

def to_node()
	tail.elements.reduce(exp.to_node()) { |tree, node|
		Dhallish::Ast::BinaryArithOpNode.new([Dhallish::Types::Bool], tree, node.exp.to_node(), "||") { |x, y| x || y }
	}
end