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: @pounce-lang/core
node v14.20.1
endpoint
share
tweet
var core = require("@pounce-lang/core") var interp = core.interpreter(core.parse("21 dup +"), {logLevel:1}); var pounceState = interp.next(); while (pounceState.value.active) { const stack = core.unParse(pounceState.value.stack); const prog = core.unParse(pounceState.value.prog); console.log(`${stack} | ${prog}`); pounceState = interp.next(); } console.log(pounceState.value.stack);
Created from: https://npm.runkit.com/%40pounce-lang%2Fcore
Loading…
Clone and edit this document