Sha256: 1ae40d069b35c1c27b5e99015342f4f8a7af818f1f36079dcccbef039efcf7c5
Contents?: true
Size: 626 Bytes
Versions: 36
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true require_relative 'lox_compound_expr' module Loxxy module Ast class LoxPrintStmt < LoxCompoundExpr # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream. # @param anExpression [Ast::LoxNode] expression to output def initialize(aPosition, anExpression) super(aPosition, [anExpression]) end # Part of the 'visitee' role in Visitor design pattern. # @param visitor [Ast::ASTVisitor] the visitor def accept(visitor) visitor.visit_print_stmt(self) end end # class end # module end # module
Version data entries
36 entries across 36 versions & 1 rubygems