Module: Dhall::Parser::Identifier
- Defined in:
- lib/dhall/parser.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/dhall/parser.rb', line 288 def value name = capture(:any_label).value return Dhall::Bool.new(value: true) if name == "True" return Dhall::Bool.new(value: false) if name == "False" Dhall::Builtins::ALL[name]&.new || Variable.new( name: name, index: capture(:natural_literal)&.string.to_i ) end |