Sha256: 93ef9b95acab6d8fd8cf506ac31e397d287585bc1fba4ae389c445750bc586e7

Contents?: true

Size: 288 Bytes

Versions: 23

Compression:

Stored size: 288 Bytes

Contents

module Dentaku
  module AST
    class Literal < Node
      attr_reader :type

      def initialize(token)
        @value = token.value
        @type  = token.category
      end

      def value(*)
        @value
      end

      def dependencies(*)
        []
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
dentaku-2.0.3 lib/dentaku/ast/literal.rb
dentaku-2.0.2 lib/dentaku/ast/literal.rb
dentaku-2.0.1 lib/dentaku/ast/literal.rb