Interface TerminalStream

All Known Implementing Classes:
ListTerminalStream

public interface TerminalStream
Represents a stream of terminal symbols, input to Lello parser.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the current symbol in the stream, without advancing the cursor.
    boolean
    Tells whether there is another symbol in the stream or not.
    void
    Advances the cursor to the next symbol in the stream.
  • Method Details

    • moveNext

      void moveNext()
      Advances the cursor to the next symbol in the stream.
    • getCurrent

      Terminal getCurrent()
      Retrieves the current symbol in the stream, without advancing the cursor.
      Returns:
      The current symbol.
    • hasNext

      boolean hasNext()
      Tells whether there is another symbol in the stream or not.
      Returns:
      true if there is another symbol, false if not.