module DhallishGrammar::LetExpression3

Public Instance Methods

to_node() click to toggle source
# File lib/DhallishGrammar.rb, line 5875
def to_node()
        vars = []
        declarations.elements.each { |node|
                typeannot = nil
                if node.respond_to? :annot and node.annot.respond_to? :exp
                        typeannot = node.annot.exp.to_node()
                end
                vars.append [node.var.text_value, typeannot, node.val.to_node()]
        }
        Dhallish::Ast::LetInNode.new vars, in_expr.to_node()
end