##- # Dedicated to the public domain # # Date: August 2016 # Modified: 2016-10-10/04:46-0400 ##+ # # uniduk.icn, load the Duktape ECMAScript engine # # tectonics: gcc -std=c99 -o uniduk.so -shared -fpic uniduk.c duktape.c procedure main() # embed some Duktape uniduk := loadfunc("./uniduk.so", "uniduk") result := uniduk("print('Hello, world');") write("Unicon: uniduk completed with ", result) end