RunKit + npm: ako-lang

node v14.20.1
version: master
endpointsharetweet
const { toAst, Interpreter } = require("ako-lang") const code = toAst(` task DelayMessage ["msg"] { @print("Toc toc !") @print("Who's there?") for i in [3,2,1] { @sleep(1) @print(String.repeat(".", i)) } @print(msg) } name = "World" @DelayMessage("Hello {name} !") `) const interpreter = new Interpreter() interpreter.createStack(code) for (let i of [1,2,3,4,5]) { interpreter.update(1) }
Created from: https://npm.runkit.com/ako-lang
Loading…

no comments

    sign in to comment