Module: DhallishGrammar::TextAppendExpression2

Defined in:
lib/DhallishGrammar.rb

Instance Method Summary collapse

Instance Method Details

#to_nodeObject



4211
4212
4213
4214
4215
# File 'lib/DhallishGrammar.rb', line 4211

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