Implemented structs
This commit is contained in:
parent
50fc8c6249
commit
e36d9fade3
32 changed files with 267 additions and 63 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue