Module Simula

Class DefaultScanner

java.lang.Object
simula.compiler.parsing.DefaultScanner
Direct Known Subclasses:
SimulaScanner

public class DefaultScanner extends Object
A Default Scanner.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • lineNumberReader

      private LineNumberReader lineNumberReader
      The LineNumberReader.
  • Constructor Details

    • DefaultScanner

      protected DefaultScanner()
      Default constructor.
    • DefaultScanner

      public DefaultScanner(Reader reader)
      Constructs a new Default Scanner that produces Tokens scanned from the specified source.
      Parameters:
      reader - The character source to scan
  • Method Details

    • nextToken

      public Token nextToken()
      Returns the next Token.
      Returns:
      the next Token