Cleaned up function type

This commit is contained in:
2024-06-29 11:49:32 +02:00
parent 5f2ff5e74e
commit 3e47a12ecd
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)