Sha256: 4b14a8fd68f6e25be4210d363149ca4e03250f72ff68a915e7951a6f954806eb

Contents?: true

Size: 603 Bytes

Versions: 13

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

require_relative 'lox_compound_expr'

module Loxxy
  module Ast
    class LoxGroupingExpr < LoxCompoundExpr
      # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream.
      # @param subExpr [Loxxy::Ast::LoxNode]
      def initialize(aPosition, subExpr)
        super(aPosition, [subExpr])
      end

      # Part of the 'visitee' role in Visitor design pattern.
      # @param visitor [Ast::ASTVisitor] the visitor
      def accept(visitor)
        visitor.visit_grouping_expr(self)
      end
    end # class
  end # module
end # module

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
loxxy-0.2.02 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.2.01 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.2.00 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.17 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.16 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.15 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.14 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.13 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.12 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.11 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.10 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.09 lib/loxxy/ast/lox_grouping_expr.rb
loxxy-0.1.08 lib/loxxy/ast/lox_grouping_expr.rb