Module: Musa::Neumalang::Neumalang::Parser::Number Private

Defined in:
lib/musa-dsl/neumalang/neumalang.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Semantic action for numeric values.

Parses numbers: 42, 3.14, 1/2.

Instance Method Summary collapse

Instance Method Details

#valueHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Builds number value structure.

Returns:

  • (Hash)

    number value with kind :value



872
873
874
875
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 872

def value
  { kind: :value,
    value: capture(:raw_number).value }.extend Musa::Neumas::Neuma
end