X-Git-Url: http://nitlanguage.org diff --git a/contrib/nitin/README.md b/contrib/nitin/README.md index e01369f..1a9ae7d 100644 --- a/contrib/nitin/README.md +++ b/contrib/nitin/README.md @@ -13,10 +13,10 @@ This tool is outside src/ because: * maintain an interpreter and live objects (the model grows but the interpreter and runtime data are reused) * runtime errors/aborts return to the interactive loop * top-level variables are preserved but are only visible at the top level +* Basic FFI -Main missing features +Main missing feature -* FFI is strange * No model/object inspection ## Examples @@ -162,7 +162,7 @@ A:bar ### Dynamic importation -~~~ +~~~raw -->print([0..10[.to_a.to_json) 1,20--26: Error: method `to_json` does not exists in `Array[Int]`. print([0..10[.to_a.to_json) @@ -171,3 +171,15 @@ A:bar -->print([0..10[.to_a.to_json) [0,1,2,3,4,5,6,7,8,9] ~~~ + +### FFI + +The FFI is handled as with the non-interactive interpreter. + +~~~raw +-->fun hello `{ +...puts("Hello, world"); +...`} +-->hello +Hello, world +~~~