mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 21:00:56 +00:00
Manifest healing on parser.kt
This commit is contained in:
parent
e56e815f06
commit
cde672244a
@ -155,7 +155,7 @@ class Parser(source: TokenSource, attribution: NodeAttribution) :
|
|||||||
override fun parseDeclaration(): Declaration = guarded {
|
override fun parseDeclaration(): Declaration = guarded {
|
||||||
val token = peek()
|
val token = peek()
|
||||||
return@guarded when (token.type) {
|
return@guarded when (token.type) {
|
||||||
TokenType.Import, TokenType.Impork, TokenType.PorkLoad -> parseImportDeclaration()
|
TokenType.Import -> parseImportDeclaration()
|
||||||
else -> throw ParseError(
|
else -> throw ParseError(
|
||||||
"Failed to parse token: ${token.type} '${token.text}' as" +
|
"Failed to parse token: ${token.type} '${token.text}' as" +
|
||||||
" declaration (index ${source.currentIndex})"
|
" declaration (index ${source.currentIndex})"
|
||||||
|
Loading…
Reference in New Issue
Block a user