Enforced consistent naming

This commit is contained in:
2024-06-26 23:24:11 +02:00
parent d1a3ffb1a5
commit 94151773a5
10 changed files with 180 additions and 150 deletions

View File

@ -14,15 +14,5 @@ func (f *Function) CompileAssignment(expr *expression.Expression) error {
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, expr.Children[0].Token.Position)
}
if expr.Token.Text() == "=" {
return f.ExpressionToRegister(expr.Children[1], variable.Register)
}
right := expr.Children[1]
if right.IsLeaf() {
return f.Calculate(variable.Register, expr.Token, right.Token)
}
return f.Execute(expr.Token, variable.Register, expr.Children[1])
}