Implements look-ahead logic that allows to read characters without changing the current position of the stream.
Namespace:
Syntactik.IO
Assembly:
Syntactik (in Syntactik.dll) Version: 0.3.0-beta1
SyntaxParameters
- i
- Type: SystemInt32
if i = 0 then result is undefined.
if i = -1 then the function returns the previously read character.
If i = -2 then the function returns the character prior to the previously read character, etc.
If i = 1 then the function returns the current character which is the next character to be consumed, etc.
Return Value
Type:
Int32Result character.
See Also