Sha256: f22ae8b6930bf9ec9125e43c0b6ede5315a6be852c560ed1e1be4b386db62210

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

#
# Copyright (c) 2018-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

module Logicality
  module Parser
    module Ast
      class Node

        attr_reader :token, :name

        def initialize(token)
          @token = token
          @name  = ''
        end

        def to_s
          "AstNode: #{self.class.name}::#{token}"
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
logicality-1.0.4 lib/logicality/parser/ast/node.rb
logicality-1.0.3 lib/logicality/parser/ast/node.rb
logicality-1.0.2 lib/logicality/parser/ast/node.rb
logicality-1.0.1 lib/logicality/parser/ast/node.rb
logicality-1.0.0 lib/logicality/parser/ast/node.rb
logicality-0.0.1 lib/logicality/parser/ast/node.rb