To start using SmolScript in your project, add the smolscript npm pacakge with npm install smolscript.
Initialize and run a simple smol script like this:
We're creating a string that contains our smol program code, and then creating a VM by compiling the code. Once we've compiled, if there are no errors, we can .run() the VM to execute the entire program once.
On the last line of this sample, once the program has finished running and control is back in our code, we're getting the value of global variable 'a' from the VM. We only really support a few simple types, but because Smol types 'use' Javascript variables as the underlying types, it's more flexible and than .net.
This is just a very quick getting started sample. You can call Smol functions from your Javascript apps, and you can register JS functions to call from SmolScript. More documentation and samples coming soon.