Update documentation
This commit is contained in:
parent
068075f1c4
commit
29be5523ff
|
@ -222,7 +222,7 @@ public class BufferedTokenStream implements TokenStream {
|
|||
* operation. The default implementation simply returns {@code i}. If an
|
||||
* exception is thrown in this method, the current stream index should not be
|
||||
* changed.
|
||||
* <p>
|
||||
* <p/>
|
||||
* For example, {@link CommonTokenStream} overrides this method to ensure that
|
||||
* the seek target is always an on-channel token.
|
||||
*
|
||||
|
|
|
@ -38,11 +38,11 @@ package org.antlr.v4.runtime;
|
|||
* from the tokens source on demand. In other words, until you ask for a
|
||||
* token using consume(), LT(), etc. the stream does not pull from the lexer.
|
||||
*
|
||||
* The only difference between this stream and BufferedTokenStream superclass
|
||||
* The only difference between this stream and {@link BufferedTokenStream} superclass
|
||||
* is that this stream knows how to ignore off channel tokens. There may be
|
||||
* a performance advantage to using the superclass if you don't pass
|
||||
* whitespace and comments etc. to the parser on a hidden channel (i.e.,
|
||||
* you set $channel instead of calling skip() in lexer rules.)
|
||||
* you set {@code $channel} instead of calling {@code skip()} in lexer rules.)
|
||||
*
|
||||
* @see UnbufferedTokenStream
|
||||
* @see BufferedTokenStream
|
||||
|
|
Loading…
Reference in New Issue