Class: Loxxy::Ast::LoxPrintStmt

Inherits:
LoxCompoundExpr show all
Defined in:
lib/loxxy/ast/lox_print_stmt.rb

Instance Attribute Summary

Attributes inherited from LoxCompoundExpr

#subnodes

Attributes inherited from LoxNode

#position

Instance Method Summary collapse

Methods inherited from LoxCompoundExpr

#accept

Methods inherited from LoxNode

#accept, #done!

Methods included from ASTVisitee

#define_accept, #snake_case

Constructor Details

#initialize(aPosition, anExpression) ⇒ LoxPrintStmt

Returns a new instance of LoxPrintStmt.

Parameters:

  • aPosition (Rley::Lexical::Position)

    Position of the entry in the input stream.

  • anExpression (Ast::LoxNode)

    expression to output



10
11
12
# File 'lib/loxxy/ast/lox_print_stmt.rb', line 10

def initialize(aPosition, anExpression)
  super(aPosition, [anExpression])
end