fix:ast
This commit is contained in:
parent
ff51636fe7
commit
ba2958cd58
@ -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));
|
||||
|
||||
@ -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} 等。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user