Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: ako-lang
node v14.20.1
version:
master
endpoint
share
tweet
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