Class: Rattler::BackEnd::ParserGenerator::ListGenerator

Inherits:
DelegatingGenerator show all
Includes:
NestedSubGenerating
Defined in:
lib/rattler/back_end/parser_generator/list_generator.rb

Direct Known Subclasses

NestedListGenerator, TopLevelListGenerator

Class Method Summary collapse

Methods included from Parsers

define

Methods inherited from DelegatingGenerator

#initialize

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::DelegatingGenerator

Class Method Details

.nested(*args) ⇒ Object



32
33
34
# File 'lib/rattler/back_end/parser_generator/list_generator.rb', line 32

def ListGenerator.nested(*args)
  NestedListGenerator.new(*args)
end

.top_level(*args) ⇒ Object



43
44
45
# File 'lib/rattler/back_end/parser_generator/list_generator.rb', line 43

def ListGenerator.top_level(*args)
  TopLevelListGenerator.new(*args)
end