Enforced consistent naming

This commit is contained in:
Eduard Urbach 2024-06-26 23:24:11 +02:00
parent 0394d68bdf
commit 51a2308179
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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])
}