Sha256: f92f6b12ff55bec78c5802a8082b7fdf02b60f34321f30c4f90f03386297f55e

Contents?: true

Size: 738 Bytes

Versions: 38

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

module Loxxy
  module Ast
    class LoxNode
      # return [Rley::Lexical::Position] Position of the entry in the input stream.
      attr_reader :position

      # @param aPosition [Rley::Lexical::Position] Position of the entry in the input stream.
      def initialize(aPosition)
        @position = aPosition
      end

      # Notification that the parsing was successfully completed
      def done!
        # Default: do nothing ...
      end

      # Abstract method.
      # Part of the 'visitee' role in Visitor design pattern.
      # @param _visitor [LoxxyTreeVisitor] the visitor
      def accept(_visitor)
        raise NotImplementedError
      end
    end # class
  end # module
end # module

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
loxxy-0.2.02 lib/loxxy/ast/lox_node.rb
loxxy-0.2.01 lib/loxxy/ast/lox_node.rb
loxxy-0.2.00 lib/loxxy/ast/lox_node.rb
loxxy-0.1.17 lib/loxxy/ast/lox_node.rb
loxxy-0.1.16 lib/loxxy/ast/lox_node.rb
loxxy-0.1.15 lib/loxxy/ast/lox_node.rb
loxxy-0.1.14 lib/loxxy/ast/lox_node.rb
loxxy-0.1.13 lib/loxxy/ast/lox_node.rb
loxxy-0.1.12 lib/loxxy/ast/lox_node.rb
loxxy-0.1.11 lib/loxxy/ast/lox_node.rb
loxxy-0.1.10 lib/loxxy/ast/lox_node.rb
loxxy-0.1.09 lib/loxxy/ast/lox_node.rb
loxxy-0.1.08 lib/loxxy/ast/lox_node.rb
loxxy-0.1.07 lib/loxxy/ast/lox_node.rb
loxxy-0.1.06 lib/loxxy/ast/lox_node.rb
loxxy-0.1.05 lib/loxxy/ast/lox_node.rb
loxxy-0.1.04 lib/loxxy/ast/lox_node.rb
loxxy-0.1.03 lib/loxxy/ast/lox_node.rb
loxxy-0.1.02 lib/loxxy/ast/lox_node.rb
loxxy-0.1.01 lib/loxxy/ast/lox_node.rb