Simplified code
This commit is contained in:
parent
abba962455
commit
eeee4d5496
30 changed files with 105 additions and 69 deletions
|
@ -21,8 +21,8 @@ func (f *Function) TokenToRegister(t token.Token, register cpu.Register) error {
|
|||
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, t.Position)
|
||||
}
|
||||
|
||||
f.UseVariable(variable)
|
||||
f.RegisterRegister(asm.MOVE, register, variable.Register)
|
||||
f.UseVariable(variable)
|
||||
return nil
|
||||
|
||||
case token.Number, token.Rune:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue