Class: Loxxy::Ast::LoxGroupingExpr
- Inherits:
-
LoxCompoundExpr
- Object
- LoxNode
- LoxCompoundExpr
- Loxxy::Ast::LoxGroupingExpr
- Defined in:
- lib/loxxy/ast/lox_grouping_expr.rb
Instance Attribute Summary
Attributes inherited from LoxCompoundExpr
Attributes inherited from LoxNode
Instance Method Summary collapse
-
#accept(visitor) ⇒ Object
Part of the 'visitee' role in Visitor design pattern.
-
#initialize(aPosition, subExpr) ⇒ LoxGroupingExpr
constructor
A new instance of LoxGroupingExpr.
Methods inherited from LoxNode
Constructor Details
#initialize(aPosition, subExpr) ⇒ LoxGroupingExpr
Returns a new instance of LoxGroupingExpr.
10 11 12 |
# File 'lib/loxxy/ast/lox_grouping_expr.rb', line 10 def initialize(aPosition, subExpr) super(aPosition, [subExpr]) end |
Instance Method Details
#accept(visitor) ⇒ Object
Part of the 'visitee' role in Visitor design pattern.
16 17 18 |
# File 'lib/loxxy/ast/lox_grouping_expr.rb', line 16 def accept(visitor) visitor.visit_grouping_expr(self) end |