Module: Treetop::Compiler::Metagrammar::Primary5
- 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
- #optional_expression ⇒ Object
- #parent_modules ⇒ Object
Instance Method Details
#compile(address, builder, parent_expression = nil) ⇒ Object
1483 1484 1485 1486 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1483 def compile(address, builder, parent_expression=nil) # STDERR.puts "Extraneous module ignored after suffix: #{input[interval].inspect}" if node_class_declarations.inline_modules.size > 0 && atomic.inline_modules.size > 0 suffix.compile(address, builder, self) end |
#inline_module_name ⇒ Object
1504 1505 1506 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1504 def inline_module_name node_class_declarations.inline_module_name end |
#inline_modules ⇒ Object
1500 1501 1502 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1500 def inline_modules atomic.inline_modules + parent_modules end |
#node_class_name ⇒ Object
1492 1493 1494 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1492 def node_class_name node_class_declarations.node_class_name end |
#optional_expression ⇒ Object
1488 1489 1490 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1488 def optional_expression atomic end |
#parent_modules ⇒ Object
1496 1497 1498 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1496 def parent_modules node_class_declarations.inline_modules end |