ilrepl
An interactive CIL REPL with a live evaluation stack
il[1]> ldc.i4 6 ┊ [int32] il[1]> ldc.i4 7 ┊ [int32, int32] ◂ top il[1]> mul ┊ [int32] il[1]> ret = 42 : int32
stackTyped, and shown after every instruction. Underflows and type mismatches are caught at the prompt.
retEnds the cell. It compiles to a real method, runs, and prints the result with its type.
opcodesAll of them. Exception blocks, calli, varargs, generics, pinned locals, and tokens too.
.saveWrites the cell to disk as an assembly. .il prints it back as ILAsm.
dotnet tool install -g ilrepl