CharStream

Undocumented in source.

Constructors

this
this(R inp)
Undocumented in source.

Alias This

_state

Members

Functions

discardCheckpoint
void discardCheckpoint()

restore saved position

match
bool match(R str)

Matches all chars from str consuming input and returns true If fails consumes no input and returns false

match
bool match(dchar chr)
Undocumented in source. Be warned that the author may not have intended to support it.
match
bool match()

Matches single char

matchAnyOf
bool matchAnyOf(dchar[] options)
Undocumented in source. Be warned that the author may not have intended to support it.
matchCase
bool matchCase(R str)
Undocumented in source. Be warned that the author may not have intended to support it.
matchOpt
bool matchOpt(dchar optional)
Undocumented in source. Be warned that the author may not have intended to support it.
next
bool next()

Returns false if input is empty Updates current and returns true otherwise

popCheckpoint
void popCheckpoint()

restore saved position

pushCheckpoint
void pushCheckpoint()

save current stream position

skipSpace
void skipSpace()

Skips zero or more whitespace chars consuming input

Structs

StreamState
struct StreamState
Undocumented in source.

Variables

_checkpointStack
Stack!StreamState _checkpointStack;
Undocumented in source.
_state
StreamState _state;
Undocumented in source.
originalInput
R originalInput;
Undocumented in source.

Meta