Module: Rattler::Compiler::ParserGenerator::PredicatePropogating
- Included in:
- GroupMatchGenerator, LabelGenerator, List1Generating, OneOrMoreGenerating, SkipGenerator, TokenGenerator
- Defined in:
- lib/rattler/compiler/parser_generator/predicate_propogating.rb
Instance Method Summary collapse
-
#gen_assert(parser, scope = ParserScope.empty) ⇒ Object
:nodoc:.
- #gen_disallow(parser, scope = ParserScope.empty) ⇒ Object
- #gen_intermediate_assert(parser, scope = ParserScope.empty) ⇒ Object
- #gen_intermediate_disallow(parser, scope = ParserScope.empty) ⇒ Object
Instance Method Details
#gen_assert(parser, scope = ParserScope.empty) ⇒ Object
:nodoc:
7 8 9 |
# File 'lib/rattler/compiler/parser_generator/predicate_propogating.rb', line 7 def gen_assert(parser, scope = ParserScope.empty) propogate_gen parser.child, :assert, scope end |
#gen_disallow(parser, scope = ParserScope.empty) ⇒ Object
11 12 13 |
# File 'lib/rattler/compiler/parser_generator/predicate_propogating.rb', line 11 def gen_disallow(parser, scope = ParserScope.empty) propogate_gen parser.child, :disallow, scope end |
#gen_intermediate_assert(parser, scope = ParserScope.empty) ⇒ Object
15 16 17 |
# File 'lib/rattler/compiler/parser_generator/predicate_propogating.rb', line 15 def gen_intermediate_assert(parser, scope = ParserScope.empty) propogate_gen parser.child, :intermediate_assert, scope end |
#gen_intermediate_disallow(parser, scope = ParserScope.empty) ⇒ Object
19 20 21 |
# File 'lib/rattler/compiler/parser_generator/predicate_propogating.rb', line 19 def gen_intermediate_disallow(parser, scope = ParserScope.empty) propogate_gen parser.child, :intermediate_disallow, scope end |