Sha256: f65e51ce3114aa86e1d4e11de92846464a4256445cf975bf392568f1ce932b20
Contents?: true
Size: 717 Bytes
Versions: 18
Compression:
Stored size: 717 Bytes
Contents
# frozen_string_literal: true require_relative 'lox_compound_expr' module Loxxy module Ast class LoxBinaryExpr < LoxCompoundExpr # @return [Symbol] message name to be sent to receiver attr_reader :operator # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream. # @param operand1 [Loxxy::Ast::LoxNode] # @param operand2 [Loxxy::Ast::LoxNode] def initialize(aPosition, anOperator, operand1, operand2) super(aPosition, [operand1, operand2]) @operator = anOperator end define_accept # Add `accept` method as found in Visitor design pattern alias operands subnodes end # class end # module end # module
Version data entries
18 entries across 18 versions & 1 rubygems