Implemented structs

This commit is contained in:
Eduard Urbach 2025-02-04 18:16:31 +01:00
parent 50fc8c6249
commit e36d9fade3
Signed by: eduard
GPG key ID: 49226B848C78F6C8
32 changed files with 267 additions and 63 deletions

View file

@ -8,7 +8,7 @@ import (
)
// Evaluate evaluates an expression and returns a register that contains the value of the expression.
func (f *Function) Evaluate(expr *expression.Expression) (*types.Type, cpu.Register, bool, error) {
func (f *Function) Evaluate(expr *expression.Expression) (types.Type, cpu.Register, bool, error) {
if expr.Token.Kind == token.Identifier {
name := expr.Token.Text(f.File.Bytes)
variable := f.VariableByName(name)