Module: Dhall::Parser::Variable

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



373
374
375
376
377
378
# File 'lib/dhall/parser.rb', line 373

def value
	Dhall::Variable.new(
		name:  capture(:nonreserved_label).value,
		index: capture(:natural_literal)&.string.to_i
	)
end