Class Directive
java.lang.Object
simula.compiler.parsing.Directive
Utility class Directive.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
insert
(SimulaScanner scanner, String fileName) %INSERT file-name(package private) static void
treatDirectiveLine
(SimulaScanner scanner, String id, String arg) Treat a directive line.
-
Constructor Details
-
Directive
Directive()Default constructor.
-
-
Method Details
-
treatDirectiveLine
Treat a directive line.- Parameters:
scanner
- the scannerid
- the directive identifierarg
- the directive argument
-
insert
%INSERT file-name
Will cause the compiler to include the indicated file at this place in the source input stream. INSERT may occur in the included file.
- Parameters:
scanner
- the SimulaScannerfileName
- the file to insert
-