mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 01:01:59 +03:00
3a7aedf0f4
This allows writing a staged well typed interpreter, for example (see reflection008 test)
8 lines
212 B
Plaintext
8 lines
212 B
Plaintext
1/1: Building Interp (Interp.idr)
|
|
Main> Main.evalAdd : Nat -> Nat -> Nat
|
|
evalAdd x y = let add = \val => \val => plus val val in add x y
|
|
Main> Main.evalBlock : Nat
|
|
evalBlock = plus 3 4
|
|
Main> 5
|
|
Main> Bye for now!
|