simple nim repl
This is enhanced version of "nim secret".
Build:
- Without libffi: nim c -d:release -d:nimcore nims.nim
- With libffi: nim c -cc:gcc -d:release -d:nimcore -d:nimHasLibFFI nims.nim
Feature list:
- It is fast, just like real repl.
- Much robust than "nim secret", nim secret is very easy to crash.
- Support all the function of nimscript.
- Support libffi, so some importc proc works.
- Input script auto indent.
- Multi-line code paste should work.
- With "-cache" option, input script can be auto save/load.
- You can add native callback function with vm_native_proc macro easily.