Module: Musa::Neumalang::Neumalang::Parser::BracketedSentences 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 bracketed sentences (grouping).

Transforms bracketed expressions into serie structure. Used for grouping like "[0 +2 +4]" (without bars).

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 serie from bracketed sentences.

Returns:

  • (Hash)

    serie structure with kind :serie



252
253
254
255
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 252

def value
  { kind: :serie,
    serie: Musa::Series::Constructors.S(*capture(:sentences).value) }.extend Musa::Neumas::Neuma
end