Method: ANTLR3::CommonTokenStream#seek

Defined in:
lib/antlr3/streams.rb

#seek(index) ⇒ Object

jump to the stream position specified by index note: seek does not check whether or not the

token at the specified position is on-channel,


914
915
916
917
# File 'lib/antlr3/streams.rb', line 914

def seek( index )
  @position = index.to_i.bound( 0, @tokens.length )
  return self
end