the CharStream to concat to this CharStream
Returns a new CharStream representing the head of the input at the current position. Throws an exception if the CharStream is empty.
Returns true of the end of the input has been reached.
Returns true if the input at the current position is empty. Note that a CharStream at the end of the input contains an empty string but that an empty string may not be the end-of-file (i.e., isEOF is false).
Returns the number of characters remaining at the current position.
Returns a new CharStream representing the input from the current start position to an end position num chars from the current start position. If startpos + num > endpos, the current CharStream is returned.
Returns true if the next s.length characters match s.
A string.
Returns a new CharStream representing the string after seeking num characters from the current position.
Returns a new CharStream created by repeatedly applying the given predicate until it no longer matches.
A predicate over valid characters.
A highly optimized seek that advances the stream while the given predicate returns true. Returns a pair of CharStreams [a,b] where a is the matching string and b is the remainder of the stream.
A predicate over valid ASCII character codes.
Returns the substring between start and end at the current position.
the start index of the substring, inclusive
the end index of the substring, exclusive
Returns a new CharStream representing the tail of the input at the current position. Throws an exception if the CharStream is empty.
Returns a Javscript primitive string of the slice of input represented by this CharStream.
Concatenate an array of CharStream objects into a single CharStream object.
a CharStream[]
Generated using TypeDoc
Returns the concatenation of the current CharStream with the given CharStream. Note: returned object does not reuse original input string, and startpos and endpos are reset. If the given CharStream contains EOF, the concatenated CharStream will also contain EOF.