Sha256: f95b387744fd57ebe8c92682eb6a7af3ac43bdc94aa61f8a2eb77bec9673587c

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

# frozen_string_literal: true

module Rus3
  module AST

    class LeafNode < Node
      def leaf?
        true
      end
    end

    class BooleanNode < LeafNode
      def type
        :boolean
      end
    end

    class IdentifierNode < LeafNode
      def type
        :identifier
      end
    end

    class PeculiarIdentifierNode < IdentifierNode
      def type
        :peculiar_identifier
      end
    end

    class CharacterNode < LeafNode
      def type
        :character
      end
    end

    class StringNode < LeafNode
      def type
        :string
      end
    end

    class NumberNode < LeafNode
      def type
        :number
      end
    end

    class DotNode < LeafNode
      def type
        :dot
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rus3-0.2.0 lib/rus3/ast/leaf_node.rb