Class Directive

java.lang.Object
simula.compiler.parsing.Directive

public class Directive extends Object

Utility class Directive.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Constructor Details

    • Directive

      Directive()
      Default constructor.
  • Method Details

    • treatDirectiveLine

      static void treatDirectiveLine(SimulaScanner scanner, String id, String arg)
      Treat a directive line.
      Parameters:
      scanner - the scanner
      id - the directive identifier
      arg - the directive argument
    • insert

      private static void insert(SimulaScanner scanner, String fileName)

      %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 SimulaScanner
      fileName - the file to insert