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-3.4.2 lib/dentaku/ast/literal.rb
dentaku-3.4.1 lib/dentaku/ast/literal.rb
dentaku-3.4.0 lib/dentaku/ast/literal.rb
dentaku-3.3.4 lib/dentaku/ast/literal.rb
dentaku-3.3.3 lib/dentaku/ast/literal.rb
dentaku-3.3.2 lib/dentaku/ast/literal.rb
dentaku-3.3.1 lib/dentaku/ast/literal.rb
dentaku-3.3.0 lib/dentaku/ast/literal.rb
dentaku-3.2.1 lib/dentaku/ast/literal.rb
dentaku-3.2.0 lib/dentaku/ast/literal.rb
dentaku-3.1.0 lib/dentaku/ast/literal.rb
dentaku-3.0.0 lib/dentaku/ast/literal.rb
dentaku-2.0.11 lib/dentaku/ast/literal.rb
dentaku-2.0.10 lib/dentaku/ast/literal.rb
dentaku-2.0.9 lib/dentaku/ast/literal.rb
dentaku-2.0.8 lib/dentaku/ast/literal.rb
dentaku-2.0.7 lib/dentaku/ast/literal.rb
dentaku-2.0.6 lib/dentaku/ast/literal.rb
dentaku-2.0.5 lib/dentaku/ast/literal.rb
dentaku-2.0.4 lib/dentaku/ast/literal.rb