Parser

interface Parser : Iterator<Event>

This interface represents an input stream of Events.

The parser and the scanner form together the 'Parse' step in the loading process.

See Figure 3.1. Processing Overview.

Inheritors

Functions

Link copied to clipboard
abstract fun checkEvent(choice: Event.ID): Boolean

Check if the next event is one of the given type.

Link copied to clipboard
abstract operator fun hasNext(): Boolean
Link copied to clipboard
abstract operator override fun next(): Event

Returns the next event.

Link copied to clipboard
abstract fun peekEvent(): Event

Return the next event, but do not delete it from the stream.