Lines Matching +refs:Set +refs:Env

30 func funcAppend(env *Env, args []r.Value) (r.Value, []r.Value) {  argument
55 func funcComplex(env *Env, args []r.Value) (r.Value, []r.Value) { argument
95 func funcEnv(env *Env, args []r.Value) (r.Value, []r.Value) { argument
99 func funcEval(env *Env, args []r.Value) (r.Value, []r.Value) { argument
109 func funcEvalType(env *Env, args []r.Value) (r.Value, []r.Value) { argument
131 func funcImag(env *Env, args []r.Value) (r.Value, []r.Value) { argument
160 func funcMacroExpand(env *Env, args []r.Value) (r.Value, []r.Value) { argument
164 func funcMacroExpand1(env *Env, args []r.Value) (r.Value, []r.Value) { argument
168 func funcMacroExpandCodewalk(env *Env, args []r.Value) (r.Value, []r.Value) { argument
172 func callMacroExpand(env *Env, args []r.Value, which WhichMacroExpand) (r.Value, []r.Value) { argument
185 env = e.Interface().(*Env)
201 func funcMake(env *Env, t r.Type, args []r.Value) (r.Value, []r.Value) { argument
230 func funcNew(env *Env, t r.Type, args []r.Value) (r.Value, []r.Value) { argument
234 func funcParse(env *Env, args []r.Value) (r.Value, []r.Value) { argument
250 func funcReal(env *Env, args []r.Value) (r.Value, []r.Value) { argument
291 func funcRecover(env *Env, args []r.Value) (r.Value, []r.Value) { argument
338 func funcValues(env *Env, args []r.Value) (r.Value, []r.Value) { argument
350 func (top *Env) addIota() {
351 top.Binds.Set("iota", r.ValueOf(0))
354 func (top *Env) removeIota() {
358 func (top *Env) incrementIota() {
360 top.Binds.Set("iota", r.ValueOf(uIota+1))
363 func (env *Env) addBuiltins() {
366 binds.Set("Env", r.ValueOf(Function{funcEnv, 0}))
367 binds.Set("Eval", r.ValueOf(Function{funcEval, 1}))
368 binds.Set("EvalType", r.ValueOf(Function{funcEvalType, 1}))
369 binds.Set("MacroExpand", r.ValueOf(Function{funcMacroExpand, -1}))
370 binds.Set("MacroExpand1", r.ValueOf(Function{funcMacroExpand1, -1}))
371 binds.Set("MacroExpandCodewalk", r.ValueOf(Function{funcMacroExpandCodewalk, -1}))
372 binds.Set("Parse", r.ValueOf(Function{funcParse, 1}))
373 binds.Set("Read", r.ValueOf(ReadString))
374 binds.Set("ReadDir", r.ValueOf(callReadDir))
375 binds.Set("ReadFile", r.ValueOf(callReadFile))
376 binds.Set("ReadMultiline", r.ValueOf(ReadMultiline))
377 binds.Set("Slice", r.ValueOf(callSlice))
378 binds.Set("String", r.ValueOf(func(args ...interface{}) string {
382 binds.Set("Values", r.ValueOf(Function{funcValues, -1}))
384 binds.Set("append", r.ValueOf(Function{funcAppend, -1}))
385 binds.Set("cap", r.ValueOf(callCap))
386 binds.Set("close", r.ValueOf(callClose))
387 binds.Set("complex", r.ValueOf(Function{funcComplex, 2}))
388 binds.Set("copy", r.ValueOf(callCopy))
389 binds.Set("delete", r.ValueOf(callDelete))
390 binds.Set("false", r.ValueOf(false))
391 binds.Set("imag", r.ValueOf(Function{funcImag, 1}))
392 binds.Set("len", r.ValueOf(callLen))
393 binds.Set("make", r.ValueOf(Constructor{funcMake, -1}))
394 binds.Set("new", r.ValueOf(Constructor{funcNew, 1}))
395 binds.Set("nil", Nil)
396 binds.Set("panic", r.ValueOf(callPanic))
397 binds.Set("print", r.ValueOf(func(args ...interface{}) {
400 binds.Set("println", r.ValueOf(func(args ...interface{}) {
403 binds.Set("real", r.ValueOf(Function{funcReal, 1}))
404 binds.Set("recover", r.ValueOf(Function{funcRecover, 0}))
405 binds.Set("true", r.ValueOf(true))
410 types.Set("bool", r.TypeOf(false))
411 types.Set("byte", r.TypeOf(byte(0)))
412 types.Set("complex64", r.TypeOf(complex64(0)))
413 types.Set("complex128", r.TypeOf(complex128(0)))
414 types.Set("error", r.TypeOf((*error)(nil)).Elem())
415 types.Set("float32", r.TypeOf(float32(0)))
416 types.Set("float64", r.TypeOf(float64(0)))
417 types.Set("int", r.TypeOf(int(0)))
418 types.Set("int8", r.TypeOf(int8(0)))
419 types.Set("int16", r.TypeOf(int16(0)))
420 types.Set("int32", r.TypeOf(int32(0)))
421 types.Set("int64", r.TypeOf(int64(0)))
422 types.Set("rune", r.TypeOf(rune(0)))
423 types.Set("string", r.TypeOf(""))
424 types.Set("uint", r.TypeOf(uint(0)))
425 types.Set("uint8", r.TypeOf(uint8(0)))
426 types.Set("uint16", r.TypeOf(uint16(0)))
427 types.Set("uint32", r.TypeOf(uint32(0)))
428 types.Set("uint64", r.TypeOf(uint64(0)))
429 types.Set("uintptr", r.TypeOf(uintptr(0)))
434 proxies.Set("error", r.TypeOf((*Error_builtin)(nil)).Elem())
446 func (env *Env) addInterpretedBuiltins() {