修复分析词法BUG

This commit is contained in:
白茶清欢 2022-07-04 18:47:50 +08:00
parent 15adffe786
commit 2f1fa81197

View File

@ -45,6 +45,7 @@ func parseLexical(jsonData string) ([]lexicalNode, error) {
Val: currentChar,
IsToken: true,
})
tmpStr = ""
} else {
// 不是关键词, 继续向后走
tmpStr = tmpStr + currentChar