Module: DhallishGrammar::ProjSelExpression4
- Defined in:
- lib/DhallishGrammar.rb
Instance Method Summary collapse
Instance Method Details
#to_node ⇒ Object
4813 4814 4815 4816 4817 4818 4819 4820 4821 |
# File 'lib/DhallishGrammar.rb', line 4813 def to_node() tail.elements.reduce(pe.to_node()) { |tree, node| if node.sel.respond_to? :a Dhallish::Ast::RecordUnionSelector.new tree, node.sel.a.text_value else Dhallish::Ast::RecordProjection.new tree, node.sel.b.to_list() end } end |