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

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

Instance Method Summary collapse

Instance Method Details

#compileObject


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

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

#parser_nameObject


305
306
307
# File 'lib/treetop/compiler/metagrammar.rb', line 305

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