Module: Treetop::Compiler::Metagrammar::Primary7
- Defined in:
- lib/treetop/compiler/metagrammar.rb
Instance Method Summary collapse
- #compile(address, builder, parent_expression = nil) ⇒ Object
- #inline_module_name ⇒ Object
- #inline_modules ⇒ Object
- #node_class_name ⇒ Object
- #parent_modules ⇒ Object
Instance Method Details
#compile(address, builder, parent_expression = nil) ⇒ Object
1519 1520 1521 1522 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1519 def compile(address, builder, parent_expression=nil) # debugger if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0 atomic.compile(address, builder, self) end |
#inline_module_name ⇒ Object
1536 1537 1538 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1536 def inline_module_name node_class_declarations.inline_module_name end |
#inline_modules ⇒ Object
1532 1533 1534 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1532 def inline_modules atomic.inline_modules + parent_modules end |
#node_class_name ⇒ Object
1524 1525 1526 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1524 def node_class_name node_class_declarations.node_class_name end |
#parent_modules ⇒ Object
1528 1529 1530 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1528 def parent_modules node_class_declarations.inline_modules end |