TokenStreamIterator

public class TokenStreamIterator : IteratorProtocol

The Iterator created by token streams

  • The iterator generates elements of type StreamedToken

    Declaration

    Swift

    public typealias Element = StreamedToken
  • Any errors encountered during parsing

    Declaration

    Swift

    public private(set) var parsingErrors: [Error]
  • DO NOT CALL**

    Declaration

    Swift

    public required init()
  • Fetches the next matching token

    • Return: The generated token or nil

    Declaration

    Swift

    public func next() -> StreamedToken?
  • True if parsing reached the end of input naturally (that is, encountered no errors)

    Declaration

    Swift

    public var reachedEndOfInput: Bool { get }