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 ⇒ 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
1541 1542 1543 1544 1545 1546 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1541 def compile(address, builder, parent_expression=nil) if node_class_declarations.inline_module && atomic.inline_module STDERR.puts "Extraneous module ignored with nested atomic: #{input[interval].inspect}" end atomic.compile(address, builder, self) end |
#inline_module ⇒ Object
1560 1561 1562 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1560 def inline_module node_class_declarations.inline_module end |
#inline_module_name ⇒ Object
1564 1565 1566 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1564 def inline_module_name node_class_declarations.inline_module_name end |
#inline_modules ⇒ Object
1556 1557 1558 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1556 def inline_modules atomic.inline_modules + parent_modules end |
#node_class_name ⇒ Object
1548 1549 1550 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1548 def node_class_name node_class_declarations.node_class_name end |
#parent_modules ⇒ Object
1552 1553 1554 |
# File 'lib/treetop/compiler/metagrammar.rb', line 1552 def parent_modules node_class_declarations.inline_modules end |