Improved code generation
This commit is contained in:
parent
5ca086f177
commit
75672c1e16
15 changed files with 215 additions and 275 deletions
|
@ -18,7 +18,7 @@ func (f *Function) TokenToRegister(t token.Token, register cpu.Register) error {
|
|||
constant, exists := f.definitions[name]
|
||||
|
||||
if exists {
|
||||
return f.EvaluateTo(constant.Value, register)
|
||||
return f.ExpressionToRegister(constant.Value, register)
|
||||
}
|
||||
|
||||
variable, exists := f.variables[name]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue