1.0.3 • Published 1 year ago
node-salamander v1.0.3
salamander
the salamander parser
example
in app.js
const Salamander = require("node-salamander")
let file = require("fs").readFileSync("./test.slmdr").toString()
let script = Salamander(file)
try{
console.log(script)
eval(script)
}catch(s){
console.log(s)
}
in test.slmdr
function X[x;y;z][
console::log(x,y,z)
]
X("hello","how are","you")
Z = "hello world",
console.log(Z;)
salamander is insensitive as to what brackets you use with conditions like "if" "else if" "else" "try" "catch"... using brackets to call functions or access deeper values are all the same as regular js, but is not comma sensitive salamander is not sensitive as to what commas you use