Added virtual symbol SymVariable translated from general real SymIdentifier symbol
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user