Documentation ¶
Index ¶
- func Nop(env *Env) (r.Value, []r.Value)
- type Env
- type Func
- type FuncInt
- type SParam
- type SReturn
- type X
- func Block(list ...X) X
- func Const(value interface{}) X
- func DeclVar(name string, expr X) X
- func For(init X, pred XBool, post X, body X) X
- func If(pred XBool, then, els X) X
- func IntToX(f XInt) X
- func Return(exprs ...X) X
- func ReturnInt(expr XInt) X
- func Var(name string) X
- func VarIncInt(name string) X
- func VarSetInt(name string, expr XInt) X
- type X1
- type XBool
- type XFunc
- type XFuncInt
- type XInt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FuncInt ¶
func DeclFibonacci ¶
interpreted version of: func fibonacci(n int) int { if (n <= 2) { return 1 } return fibonacci(n-1) + fibonacci(n-2) }
Click to show internal directories.
Click to hide internal directories.