Module: Plurimath::UnicodeMath::ParsingRules::Masked

Includes:
Helper
Included in:
Plurimath::UnicodeMath::Parse
Defined in:
lib/plurimath/unicode_math/parsing_rules/masked.rb

Instance Method Summary collapse

Methods included from Helper

included

Instance Method Details

#bracketed_masked_value(func_name) ⇒ Object



56
57
58
# File 'lib/plurimath/unicode_math/parsing_rules/masked.rb', line 56

def bracketed_masked_value(func_name)
  str("(") >> (masked_value(func_name).as(func_name)) >> str(")")
end

#masked_value(func_name) ⇒ Object



52
53
54
# File 'lib/plurimath/unicode_math/parsing_rules/masked.rb', line 52

def masked_value(func_name)
  match["^&"].repeat(1).as(:"#{func_name}_value") >> str("&") >> masked_recursive_value.as(:first_value)
end