Added scope package
This commit is contained in:
src/build
core
AddVariable.goComment.goCompare.goCompile.goCompileAST.goCompileASTNode.goCompileAssign.goCompileCall.goCompileCondition.goCompileDefinition.goCompileIf.goCompileLoop.goCompileTokens.goExecute.goExecuteLeaf.goExpressionToRegister.goFunction.goInstructions.goJumpIfFalse.goJumpIfTrue.goNewFunction.goPrintInstructions.goSaveRegister.goScope.goTokenToRegister.goVariable.goVariableByName.goVariableInRegister.goidentifierExists.gopostInstruction.gostoreVariableInRegister.gouseVariable.go
scanner
scope
@ -23,8 +23,8 @@ func (f *Function) Execute(operation token.Token, register cpu.Register, value *
|
||||
return f.ExecuteRegisterRegister(operation, register, f.cpu.Output[0])
|
||||
}
|
||||
|
||||
tmp := f.Scope().MustFindFree(f.cpu.General)
|
||||
defer f.Scope().Free(tmp)
|
||||
tmp := f.CurrentScope().MustFindFree(f.cpu.General)
|
||||
defer f.CurrentScope().Free(tmp)
|
||||
|
||||
err := f.ExpressionToRegister(value, tmp)
|
||||
|
||||
|
Reference in New Issue
Block a user