This commit is contained in:
Luke 2025-04-24 17:31:38 +08:00
parent ff51636fe7
commit ba2958cd58
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class ParserEngine {
String lex = ts.peek().getLexeme();
TopLevelParser parser = TopLevelParserFactory.get(lex);
if (parser == null) {
throw new IllegalStateException("Unexpected top-level token: " + lex);
throw new IllegalStateException("意外的顶级标记: " + lex);
}
nodes.add(parser.parse(ctx));

View File

@ -1,7 +1,7 @@
package org.jcnc.snow.compiler.parser;
import org.jcnc.snow.compiler.parser.context.ParserContext;
import org.jcnc.snow.compiler.parser.ast.Node;
import org.jcnc.snow.compiler.parser.context.ParserContext;
/**
* 顶层结构解析器接口用于解析模块级别的语法结构 {@code module}{@code import}