Cleaned up function type

This commit is contained in:
Eduard Urbach 2024-06-29 11:49:32 +02:00
parent f870a5f1f8
commit 67b3a3d820
Signed by: eduard
GPG key ID: 49226B848C78F6C8
14 changed files with 310 additions and 294 deletions

View file

@ -8,7 +8,7 @@ import (
// CompileAssignment compiles an assignment.
func (f *Function) CompileAssignment(expr *expression.Expression) error {
name := expr.Children[0].Token.Text()
variable, exists := f.Variables[name]
variable, exists := f.variables[name]
if !exists {
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, expr.Children[0].Token.Position)