Module: DhallishGrammar::AndExpression2

Defined in:
lib/DhallishGrammar.rb

Instance Method Summary collapse

Instance Method Details

#to_nodeObject



3570
3571
3572
3573
3574
# File 'lib/DhallishGrammar.rb', line 3570

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