mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
parser: rewrite to be able to parse any node type on demand
This commit is contained in:
@ -24,7 +24,7 @@ class World(val importSource: ImportSource) {
|
||||
val tokenizer = Tokenizer(charSource)
|
||||
val tokenStream = tokenizer.tokenize()
|
||||
val parser = Parser(TokenStreamSource(tokenStream), DiscardNodeAttribution)
|
||||
val unit = parser.readCompilationUnit()
|
||||
val unit = parser.parseCompilationUnit()
|
||||
internalUnits[stableKey] = unit
|
||||
return unit
|
||||
}
|
||||
|
Reference in New Issue
Block a user