gblk
v0.0.185
Published
GBLK language to run with node
Downloads
3
Readme
CODE EXECUTION GBLK SCRIPT
v0.0.185: Fixed directly run file path
API
const gblk = require("gblk");
// Run source directly (Syncronous)
console.log(gblk.runSync("tulis('hai')"));
// Run file (Asyncronous)
gblk.runFile("./hello.gblk").then(console.log).catch(console.warn);
// Run source (Ansycronous)
gblk.run("tulis('halo'); jika 1 > 0 maka tulis('benar') tutup; tulis('selesai')").then(console.log).catch(console.error);
CLI
# Run source directly
ngblk "jika benar maka tulis('benar == true') jikatidak tulis('salah == false') tutup" -t
# Run source from file
ngblk hello.gblk
Test: npm test
Github: gblk