Class: Rattler::BackEnd::ParserGenerator::TopLevelList1Generator

Inherits:
List1Generator show all
Includes:
TopLevel
Defined in:
lib/rattler/back_end/parser_generator/list1_generator.rb

Instance Method Summary collapse

Methods included from TopLevel

#expr, #nested?

Methods inherited from List1Generator

#gen_skip, nested, top_level

Methods included from PredicatePropogating

#gen_intermediate_assert, #gen_intermediate_disallow

Methods included from Parsers

define

Methods included from ListGenerating

#gen_basic, #gen_direct_action, #gen_dispatch_action

Methods inherited from ExprGenerator

#gen_direct_action, #gen_dispatch_action, #gen_intermediate, #gen_intermediate_assert, #gen_intermediate_disallow, #gen_intermediate_skip, #gen_token, #initialize

Constructor Details

This class inherits a constructor from Rattler::BackEnd::ParserGenerator::ExprGenerator

Instance Method Details

#gen_assert(parser, scope = {}) ⇒ Object



40
41
42
# File 'lib/rattler/back_end/parser_generator/list1_generator.rb', line 40

def gen_assert(parser, scope = {})
  gen_top_level parser.child, :assert, scope
end

#gen_disallow(parser, scope = {}) ⇒ Object



44
45
46
# File 'lib/rattler/back_end/parser_generator/list1_generator.rb', line 44

def gen_disallow(parser, scope = {})
  gen_top_level parser.child, :disallow, scope
end