Added simple variable lifetimes
This commit is contained in:
parent
9e3112ad52
commit
6b5bc22ec6
6 changed files with 107 additions and 39 deletions
|
@ -14,5 +14,6 @@ func (f *Function) CompileAssignment(expr *expression.Expression) error {
|
|||
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, expr.Children[0].Token.Position)
|
||||
}
|
||||
|
||||
defer f.useVariable(variable)
|
||||
return f.Execute(expr.Token, variable.Register, expr.Children[1])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue