修复不打印的bug
This commit is contained in:
parent
dc9eb925ce
commit
0cecb5797b
@ -37,7 +37,7 @@ public class ParserEngine {
|
||||
TokenStream ts = ctx.getTokens(); // 获取 Token 流
|
||||
|
||||
// 循环解析直到文件结束
|
||||
while (!ts.isAtEnd()) {
|
||||
while (ts.isAtEnd()) {
|
||||
// 跳过空行,增加语法容错能力
|
||||
if (ts.peek().getType() == TokenType.NEWLINE) {
|
||||
ts.next(); // 消耗空行
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user