Class: Antlr4::Runtime::CharStreams

Inherits:
Object
  • Object
show all
Defined in:
lib/antlr4/runtime/char_streams.rb

Constant Summary collapse

DEFAULT_BUFFER_SIZE =
4096

Class Method Summary collapse

Class Method Details

.from_string(s, source_name) ⇒ Object



6
7
8
# File 'lib/antlr4/runtime/char_streams.rb', line 6

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