But I don't see an C++ code
That's coz the interpreter is written in js. https://github.com/Ratismal/brainfuck-node/blob/master/lib/index.js
v8 engine
spider monkey
e.t.c so when the web assembly sequence is complete browsers will now comes compiled with a web assembly VM which means that all the browser size will increase
spider monkey
from mosilla and use it on desktop well you just created another or maybe a betther platform than NODE
SIMPLE_API void init_simple_module(SimpleState *sState)
{
//standard streams
register_block("__std_print",std_print);
}
void std_print(void *pointer)
{
fprintf(stdout, "%s", SIMPLE_API_GETSTRING(2) );
}
compile to your lib e.g lib.so
so in simple you could do callDynamicModule("lib.so")
__std_print("Hello World")
list = [[0]]
@list[0][0] //resolves in error
dev
branch i ll push to it every hour. In short i ll be re writing simple-lang to fix a lot of things
Good to hear. But I'm not sure I understand totally what you meant here:
using braces to access variables
.NET interops
and python ctype
en example using a class approach
call simple.system.interop
lib = new DynamicLibrary("opengl.dll")
lib.callFunction("DrawCircle", [parameter1, parameter2, parameter3])
using block approach
call simple.system.interop
lib = loadDynamicLibrary("opengl.dll")
callFunction(lib,"DrawCircle", [parameter1, parameter2, parameter3])