Sha256: 2ff08ac60e8f3770ea6a23041054efdf859758608a10d18415d6734c6cc1f43b

Contents?: true

Size: 205 Bytes

Versions: 9

Compression:

Stored size: 205 Bytes

Contents

module Antlr4::Runtime

  class CharStreams
    DEFAULT_BUFFER_SIZE = 4096

    def self.from_string(s, source_name)
      CodePointCharStream.new(0, s.length, source_name, s.codepoints)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
antlr4-runtime-0.2.12 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.11 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.10 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.9 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.8 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.7 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.6 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.5 lib/antlr4/runtime/char_streams.rb
antlr4-runtime-0.2.4 lib/antlr4/runtime/char_streams.rb