Sha256: 3f8f628fedc98da3745263d3bdb4da4d5ddd38c09f6eed60d0e97fa240748884

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Brandish
  class Parser
    class Node
      # A "string."  Because of how loose the language is, this is similar to
      # a {Text} node, but has no restriction on the allowed values for the
      # node.
      class String < Text
        # A set of tokens kinds that are allowed to be in a string node.
        #
        # @return [::Set<::Symbol>]
        TOKENS = (Node::Text::TOKENS - ::Set[:'"']) + ::Set[:<, :>]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brandish-0.1.3 lib/brandish/parser/node/string.rb
brandish-0.1.2 lib/brandish/parser/node/string.rb
brandish-0.1.1 lib/brandish/parser/node/string.rb