Module: Musa::Neumalang::Neumalang::Parser::PackedVector 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 packed vector notation.

Transforms packed vector notation "<a: 1 b: 2>" into PackedV structure. PackedV is hash-based vector with named components.

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 packed vector structure.

Returns:

  • (Hash)

    packed_v with kind :packed_v



505
506
507
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 505

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