Class: Loxxy::Ast::LoxPrintStmt
- Inherits:
-
LoxCompoundExpr
- Object
- LoxNode
- LoxCompoundExpr
- Loxxy::Ast::LoxPrintStmt
- Defined in:
- lib/loxxy/ast/lox_print_stmt.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, anExpression) ⇒ LoxPrintStmt
constructor
A new instance of LoxPrintStmt.
Methods inherited from LoxNode
Constructor Details
#initialize(aPosition, anExpression) ⇒ LoxPrintStmt
Returns a new instance of LoxPrintStmt.
10 11 12 |
# File 'lib/loxxy/ast/lox_print_stmt.rb', line 10 def initialize(aPosition, anExpression) super(aPosition, [anExpression]) end |
Instance Method Details
#accept(visitor) ⇒ Object
Part of the 'visitee' role in Visitor design pattern.
16 17 18 |
# File 'lib/loxxy/ast/lox_print_stmt.rb', line 16 def accept(visitor) visitor.visit_print_stmt(self) end |