Class: Treetop::Compiler::TreetopFile

Inherits:
Runtime::SyntaxNode show all
Defined in:
lib/treetop/compiler/node_classes/treetop_file.rb

Instance Attribute Summary

Attributes inherited from Runtime::SyntaxNode

#elements, #input, #interval, #parent

Instance Method Summary collapse

Methods inherited from Runtime::SyntaxNode

#empty?, #extension_modules, #initialize, #inspect, #nonterminal?, #terminal?, #text_value

Constructor Details

This class inherits a constructor from Treetop::Runtime::SyntaxNode

Instance Method Details

#compileObject



4
5
6
# File 'lib/treetop/compiler/node_classes/treetop_file.rb', line 4

def compile
  (elements.map {|elt| elt.compile}).join
end