Abstract
Abstract
Readonly
capacityAbstract
Readonly
columnThe one-based column number of the current lookahead token, relative to the current line in the stream.
Abstract
Readonly
idAn informative identifier for this token stream, or undefined
if this
stream is unidentified.
Abstract
Readonly
indexAbstract
Readonly
limitAbstract
Readonly
lineThe one-based line number of the current lookahead token, relative to the start of the stream.
Abstract
Readonly
markThe position of the current lookahead token, relative to the start of the stream.
Abstract
Readonly
offsetThe byte offset of the current lookahead token, relative to the start of the stream.
Abstract
Readonly
remainingAbstract
Readonly
settingsThe InputSettings
used to configure the behavior of input consumers
that read from this Input
.
Abstract
asReturns a partial Input
equivalent to this Input
, if part
is true
;
returns a final Input
equivalent to this Input
if part
is false
.
The caller's reference to this Input
should be replaced by the returned
Input
Abstract
cloneReturns an independently positioned view into the token stream,
initialized with identical state to this Input
.
Error
if this Input
reader cannot be cloned.
Abstract
getAbstract
hasAbstract
headAbstract
isAbstract
isAbstract
isAbstract
isAbstract
isAbstract
seekSets the position of this Input
to the given mark
. Rewinds to the
start of this Input
, if mark
is undefined
.
[[InputException]] if this Input
does not support seeking,
or is unable to reposition to the mark
.
Abstract
setAbstract
stepAdvances to the next token, if this Input
is in the cont state.
Optional
offset: numberError
if this Input
is not in the cont state.
Abstract
withReturns an Input
equivalent to this Input
, but logically identified
by the given–possibly undefined
–id
. The caller's reference to this
Input
should be replaced by the returned Input
.
Abstract
withAbstract
withAbstract
withReturns an Input
equivalent to this Input
, but logically positioned
at the given mark
. The physical position in the input stream is not
modified. The caller's reference to this Input
should be replaced by
the returned Input
.
Abstract
withReturns a clone of this Input
with the given settings
.
Error
if this Input
reader cannot be cloned.
Static
doneReturns an InputBuffer
in the done state.
Static
emptyReturns an InputBuffer
in the empty state.
Static
errorReturns an InputBuffer
in the error state that traps the given error
.
Generated using TypeDoc
Non-blocking token stream buffer.