Sha256: b91c0a496bc3679350ced4f0622be761eddacbe36c28b2b9b0e9ffbe896d852a
Contents?: true
Size: 714 Bytes
Versions: 56
Compression:
Stored size: 714 Bytes
Contents
# frozen_string_literal: true require_relative 'lox_node' module Loxxy module Ast class LoxCompoundExpr < LoxNode # @return [Array<Ast::LoxNode>] the children nodes (sub-expressions) attr_reader :subnodes # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream. # @param theSubnodes [Array<Ast::LoxNode>] def initialize(aPosition, theSubnodes) super(aPosition) @subnodes = theSubnodes end # Part of the 'visitee' role in Visitor design pattern. # @param visitor [ASTVisitor] the visitor def accept(visitor) visitor.visit_compound_expr(self) end end # class end # module end # module
Version data entries
56 entries across 56 versions & 1 rubygems