Module: Treetop::Compiler::Metagrammar::Primary3

Defined in:
lib/treetop/compiler/metagrammar.rb

Instance Method Summary collapse

Instance Method Details

#compile(address, builder, parent_expression = nil) ⇒ Object



979
980
981
# File 'lib/treetop/compiler/metagrammar.rb', line 979

def compile(address, builder, parent_expression=nil)
  suffix.compile(address, builder, self)
end

#inline_module_nameObject



995
996
997
# File 'lib/treetop/compiler/metagrammar.rb', line 995

def inline_module_name
  node_class_declarations.inline_module_name
end

#inline_modulesObject



991
992
993
# File 'lib/treetop/compiler/metagrammar.rb', line 991

def inline_modules
  atomic.inline_modules + node_class_declarations.inline_modules
end

#node_class_nameObject



987
988
989
# File 'lib/treetop/compiler/metagrammar.rb', line 987

def node_class_name
  node_class_declarations.node_class_name
end

#optional_expressionObject



983
984
985
# File 'lib/treetop/compiler/metagrammar.rb', line 983

def optional_expression
  atomic
end