0.0.185 • Published 4 years ago

gblk v0.0.185

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

0.0.185

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.15

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago