java.lang.Object
simula.compiler.parsing.SourceFileReader
Utility class SourceFileReader.
Input Utilities for the Simula Scanner.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
stack
The stack of readers -
current
The current Reader -
nameStack
The stack of file names -
lineStack
The stack of line numbers
-
-
Constructor Details
-
SourceFileReader
SourceFileReader(Reader reader) Create a new SourceFileReader.- Parameters:
reader
- the initial underlying Reader
-
-
Method Details
-
read
int read()Read next character.- Returns:
- next character
-
insert
Insert a file.- Parameters:
file
- the file to be inserted
-
forceEOF
void forceEOF()Force EOF on the current underlying reader. -
close
void close()Close this source file reader
-