basic: fixing some unary mishaps on parser

This commit is contained in:
minjaesong
2020-12-14 10:08:10 +09:00
parent 45b37d40b1
commit 1b6f768f9d
2 changed files with 10 additions and 2 deletions

View File

@@ -1706,7 +1706,7 @@ FUNCTION_CALL (type: function, value: PRINT or something)
// @returns BasicAST
bF._EquationIllegalTokens = ["IF","THEN","ELSE","DEFUN","ON"];
bF.isSemanticLiteral = function(token, state) {
return "]" == token || ")" == token ||
return undefined == token || "]" == token || ")" == token ||
"qot" == state || "num" == state || "bool" == state || "lit" == state;
}
bF.parserDoDebugPrint = true;