mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 05:10:55 +00:00
parser: rewrite to be able to parse any node type on demand
This commit is contained in:
@ -12,7 +12,7 @@ class PorkParser : PsiParser {
|
||||
val source = PsiBuilderTokenSource(builder)
|
||||
val parser = Parser(source, psiBuilderMarkAttribution)
|
||||
try {
|
||||
parser.within { parser.readCompilationUnit() }
|
||||
parser.parseCompilationUnit()
|
||||
} catch (_: ExitParser) {}
|
||||
return builder.treeBuilt
|
||||
}
|
||||
|
Reference in New Issue
Block a user