fix:返回中文

This commit is contained in:
Luke 2025-04-25 17:09:32 +08:00
parent b18d53e4ba
commit 7e3d7fc4d0

View File

@ -62,7 +62,7 @@ public class PrattExpressionParser implements ExpressionParser {
Token token = ctx.getTokens().next(); Token token = ctx.getTokens().next();
PrefixParselet prefix = prefixes.get(token.getType().name()); PrefixParselet prefix = prefixes.get(token.getType().name());
if (prefix == null) { if (prefix == null) {
throw new IllegalStateException("No prefix parselet registered for token type: " + token.getType()); throw new IllegalStateException("没有为该 Token 类型注册前缀解析器: " + token.getType());
} }
ExpressionNode left = prefix.parse(ctx, token); ExpressionNode left = prefix.parse(ctx, token);