Sha256: f9b043213f35fad0ca1e6b11ed0f0b9d00ec69e53b8386cd0e5d7119a6b3067c

Contents?: true

Size: 570 Bytes

Versions: 14

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

require_relative 'lox_compound_expr'

module Loxxy
  module Ast
    class LoxCallExpr < LoxCompoundExpr
      attr_accessor :callee
      attr_reader :arguments

      # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream.
      # @param argList [Array<Loxxy::Ast::LoxNode>]
      def initialize(aPosition, argList)
        super(aPosition, [])
        @arguments = argList
      end

      define_accept # Add `accept` method as found in Visitor design pattern
    end # class
  end # module
end # module

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
loxxy-0.4.05 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.4.04 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.4.03 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.4.02 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.4.01 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.4.00 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.3.03 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.3.02 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.3.01 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.3.00 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.2.06 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.2.05 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.2.04 lib/loxxy/ast/lox_call_expr.rb
loxxy-0.2.03 lib/loxxy/ast/lox_call_expr.rb