Module: Musa::Neumalang::Neumalang::Parser::Special 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 special values.
Parses special keywords: nil, true, false.
Instance Method Summary collapse
-
#value ⇒ Hash
private
Builds special value structure.
Instance Method Details
#value ⇒ Hash
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 special value structure.
889 890 891 892 893 |
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 889 def value v = captures(0) { kind: :value, value: v == 'nil' ? nil : (v == 'true' ? true : false) }.extend Musa::Neumas::Neuma end |