Class: Musa::GenerativeGrammar::Implementation::ProxyNode Private

Inherits:
Node
  • Object
show all
Defined in:
lib/musa-dsl/generative/generative-grammar.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Proxy node for recursive grammar references.

Acts as placeholder that delegates to assigned node. Enables recursive and self-referential grammars.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nodeNode?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns assigned node.

Returns:

  • (Node, nil)

    assigned node



432
433
434
# File 'lib/musa-dsl/generative/generative-grammar.rb', line 432

def node
  @node
end

Instance Method Details

#_options(parent: nil, &condition) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



435
436
437
# File 'lib/musa-dsl/generative/generative-grammar.rb', line 435

def _options(parent: nil, &condition)
  @node._options parent: parent, &condition
end