mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
parser: lazy support
This commit is contained in:
@ -15,7 +15,6 @@ class TokenizeCommand : CliktCommand(help = "Tokenize Compilation Unit", name =
|
||||
while (true) {
|
||||
val token = tokenSource.next()
|
||||
println("${token.sourceIndex} ${token.type.name} '${sanitize(token.text)}'")
|
||||
tokenSource.peekTypeAhead(5)
|
||||
if (token.type == TokenType.EndOfFile) {
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user