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
Instance Method Details
#bracketed_masked_value(func_name) ⇒ Object
55 56 57 |
# File 'lib/plurimath/unicode_math/parsing_rules/masked.rb', line 55 def bracketed_masked_value(func_name) str("(") >> (masked_value(func_name).as(func_name)) >> str(")") end |
#masked_value(func_name) ⇒ Object
51 52 53 |
# File 'lib/plurimath/unicode_math/parsing_rules/masked.rb', line 51 def masked_value(func_name) match["^&"].repeat(1).as(:"#{func_name}_value") >> str("&") >> masked_recursive_value.as(:first_value) end |