Module: Dhall::Parser::ApplicationExpression

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



111
112
113
114
115
116
117
# File 'lib/dhall/parser.rb', line 111

def value
  first_expr = [capture(:first_application_expression).value]
  els = first_expr + captures(:import_expression).map(&:value)
  els.reduce do |f, arg|
    Application.for(function: f, argument: arg)
  end
end