Simply install NodeJS and install NectarJS :
npm install -g nectarjs
Once done, you can create a folder test and go in :
mkdir test && cd test
We are ready to import NectarJS examples :
We want to compile the file
c_interface.js, that include the c file
test.c with the macro
Compile and run
Let's compile and run that !
$ nectar --run c_interface.js
And the result is :
We are working hard on NectarJS and want to create a lot of interface to make it possible to hack and play with.