Module: Dhall::Parser::AnnotatedExpression

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



505
506
507
508
509
510
511
512
513
514
# File 'lib/dhall/parser.rb', line 505

def value
  if matches[1].string.empty?
    first.value
  else
    TypeAnnotation.new(
      value: first.value,
      type:  capture(:expression).value
    )
  end
end