Sha256: 6ea7659408b79904799c4c7f8c6b26007004835240d87030371878ffcff67412
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 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 # Abstract method. # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loxxy-0.0.13 | lib/loxxy/ast/lox_print_stmt.rb |
loxxy-0.0.12 | lib/loxxy/ast/lox_print_stmt.rb |