Class: Treetop::Compiler::TreetopFile
- Inherits:
-
Runtime::SyntaxNode
- Object
- Runtime::SyntaxNode
- Treetop::Compiler::TreetopFile
- 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
#compile ⇒ Object
4 5 6 |
# File 'lib/treetop/compiler/node_classes/treetop_file.rb', line 4 def compile (elements.map {|elt| elt.compile}).join end |