package build import ( "git.akyoto.dev/cli/q/src/build/expression" "git.akyoto.dev/cli/q/src/build/token" ) // CompileReturn compiles a return instruction. func (f *Function) CompileReturn(tokens token.List) error { if len(tokens) > 1 { value := expression.Parse(tokens[1:]) defer value.Close() // TODO: Set the return value } f.assembler.Return() return nil }