Added virtual symbol SymVariable translated from general real SymIdentifier symbol

This commit is contained in:
2024-05-20 06:05:24 +02:00
parent e5c5920db0
commit 7c8dbb0ac7
7 changed files with 12 additions and 32 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func evalAssign(ctx ExprContext, self *term) (v any, err error) {
}
leftTerm := self.children[0]
if leftTerm.tk.Sym != SymIdentifier {
if leftTerm.tk.Sym != SymVariable {
err = leftTerm.tk.Errorf("left operand of %q must be a variable", self.tk.source)
return
}