Sha256: 1add8242de9127ea8fe6696653149d5897882169bb89927c0656b2dba4b9cbf0

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

require 'antlr4ruby/common_token_stream'
require 'antlr4ruby/char_streams'
require 'example/hello_lexer'

include Antlr4ruby

stream = CharStreams.from_string('hello world 123456 ____123___     89231 GH')
lexer = HelloLexer.new(stream)
tokens = CommonTokenStream.new(lexer)
tokens.get_number_of_on_channel_tokens.times do |i|
  p tokens.get(i)
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 lib/main.rb