TokenStream
public class TokenStream : Sequence
A TokenStream
provides lazy iterators that minimize memory consumption and overhead allowing you to iterate through the tokens created by the
root rules (those at the lowest level in the language) in the supplied Grammar
-
The iterator implementation to use
Declaration
Swift
public typealias Iterator = TokenStreamIterator
-
Undocumented
Declaration
Swift
public init(_ source: String, using grammar: Grammar)
-
Undocumented
Declaration
Swift
public init<Lex>(_ source: String, using grammar: Grammar, with lexer: Lex.Type) where Lex : LexicalAnalyzer
-
Declaration
Swift
public func makeIterator() -> Iterator