This class implements a wrapper around a stream, with the following additional capabilities:
-
It tracks the line number and column number;
-
It permits to "un-read" characters and tokens.
More...
This class implements a wrapper around a stream, with the following additional capabilities:
-
It tracks the line number and column number;
-
It permits to "un-read" characters and tokens.
Parameters:
| Stream | a Stream object, used to read a file; |
| Location | a SourceLocation object; |
| SavedChar | a char? object, holding the un-read character or being null, if no char has been un-read; |
| SavedLocation | a SourceLocation object with the location of the un-read character or token; |
| Tabulation | a Ray object that hit the surface; |
| SavedToken | a Token object, holding the un-read token or being null, if no token has been un-read. |
◆ ParseFloatToken()
◆ ParseKeywordOrIdentifierToken()
| Token PGENLib.InputStream.ParseKeywordOrIdentifierToken |
( |
char |
firstChar, |
|
|
SourceLocation |
tokenLocation |
|
) |
| |
|
private |
Read either a KeywordTokeN or a IdentifierToken in a given location.
- Parameters
-
- Returns
◆ ParseStringToken()
Read a StringToken in a given location.
- Parameters
-
| tokenLocation | The location in the file |
- Returns
- The StringToken we just read.
◆ ReadToken()
| Token PGENLib.InputStream.ReadToken |
( |
| ) |
|
Reads a token from the stream
- Returns
- Exceptions
-
◆ UnreadToken()
| void PGENLib.InputStream.UnreadToken |
( |
Token |
token | ) |
|
Make as if token were never read from inputFile
- Parameters
-
◆ UpdatePosition()
| void PGENLib.InputStream.UpdatePosition |
( |
char |
ch | ) |
|
|
private |
Shift the cursor one position ahead.
- Parameters
-
The documentation for this class was generated from the following file:
- /Users/fra/Documenti/Università/Magistrale/SNIF/PhotoGENius/PGENLib/SceneFiles.cs