Module: Treetop::Compiler::Metagrammar::ModuleDeclaration5

Defined in:
lib/treetop/compiler/metagrammar.rb

Instance Method Summary collapse

Instance Method Details

#compileObject



296
297
298
# File 'lib/treetop/compiler/metagrammar.rb', line 296

def compile
  prefix.text_value + module_contents.compile + suffix.text_value
end

#parser_nameObject



300
301
302
# File 'lib/treetop/compiler/metagrammar.rb', line 300

def parser_name
  prefix.name.text_value+'::'+module_contents.parser_name
end