Sha256: 97d78bbea12d78c7e530734565f7f4bfdcfe4378cfa9d192c20f3f03b59a4661
Contents?: true
Size: 834 Bytes
Versions: 32
Compression:
Stored size: 834 Bytes
Contents
# frozen_string_literal: true require_relative 'lox_compound_expr' module Loxxy module Ast class LoxLogicalExpr < 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 # Part of the 'visitee' role in Visitor design pattern. # @param visitor [Ast::ASTVisitor] the visitor def accept(visitor) visitor.visit_logical_expr(self) end alias operands subnodes end # class end # module end # module
Version data entries
32 entries across 32 versions & 1 rubygems