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

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

Instance Method Summary collapse

Instance Method Details

#compileObject



298
299
300
# File 'lib/treetop/compiler/metagrammar.rb', line 298

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

#parser_nameObject



302
303
304
# File 'lib/treetop/compiler/metagrammar.rb', line 302

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