Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
eof
(SimulaScanner scanner) %EOFprivate static void
insert
(SimulaScanner scanner, String fileName) %INSERT file-nameprivate static void
page()
%PAGEprivate static void
setKeepJava
(String dir) %KEEP_JAVA directory-stringprivate static void
%OPTION name valueprivate static void
%SPORT ON / OFFprivate static void
%TITLE title-string(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-nameWill cause the compiler to include the indicated file at this place in the source input stream. INSERT may occur in the included file. In contrast to COPY, the included lines are not counted (they will all be numbered with the line number of the line containing the outermost INSERT). Furthermore, if the source is being listed, listing is turned off during the inclusion and turned on again when reading continues after this directive.
- Parameters:
scanner
- the SimulaScannerfileName
- the file to insert
-
page
private static void page()%PAGEWill cause the compiler to change to a new page in the listing file. If the page heading (as defined by %TITLE, see below) is non-empty, it will be printed on top of the new page.
-
setOption
private static void setOption()%OPTION name valueWill set compiler switch 'name' to the value 'value'. The facility is intended for compiler maitenance, and is not explained further.
-
setSport
%SPORT ON / OFFEnables/disables special S-Port Simula features, such as inclusion of the S-Port Library.
The initial value is ON.
- Parameters:
onoff
- the on/off string
-
eof
%EOF- Parameters:
scanner
- the SimulaScanner
-
setTitle
%TITLE title-string- Parameters:
title
- title string
-
setKeepJava
%KEEP_JAVA directory-string- Parameters:
dir
- directory-string
-