Package org.oristool.lello.parse
Interface TerminalStream
- All Known Implementing Classes:
ListTerminalStream
public interface TerminalStream
Represents a stream of terminal symbols, input to Lello parser.
-
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.
-