Class: Rley::Notation::GroupingNode
- Inherits:
-
SequenceNode
- Object
- ASTNode
- SequenceNode
- Rley::Notation::GroupingNode
- Defined in:
- lib/rley/notation/grouping_node.rb
Overview
A syntax node representing an expression bracketed by parentheses.
Instance Attribute Summary
Attributes inherited from SequenceNode
Attributes inherited from ASTNode
#annotation, #position, #repetition
Instance Method Summary collapse
-
#accept(visitor) ⇒ Object
Part of the 'visitee' role in Visitor design pattern.
-
#initialize(aPosition, sequence, theRepetition = nil) ⇒ GroupingNode
constructor
A new instance of GroupingNode.
Methods inherited from SequenceNode
Methods inherited from ASTNode
Constructor Details
#initialize(aPosition, sequence, theRepetition = nil) ⇒ GroupingNode
Returns a new instance of GroupingNode.
12 13 14 |
# File 'lib/rley/notation/grouping_node.rb', line 12 def initialize(aPosition, sequence, theRepetition = nil) super(aPosition, sequence, theRepetition) end |
Instance Method Details
#accept(visitor) ⇒ Object
Part of the 'visitee' role in Visitor design pattern.
18 19 20 |
# File 'lib/rley/notation/grouping_node.rb', line 18 def accept(visitor) visitor.visit_grouping_node(self) end |