Letting us redefine functions, reactively

This commit is contained in:
Dustin Swan 2026-02-09 12:54:09 -07:00
parent 33f3b2cfc2
commit 60c8f74d50
No known key found for this signature in database
GPG key ID: 30D46587E2100467
4 changed files with 169 additions and 3 deletions

View file

@ -22,6 +22,7 @@ try {
const parser = new Parser(tokens, cgCode);
const defs = parser.parse();
const os = compileAndRun(defs);
runAppCompiled(
{ init: os.init, update: os.update, view: os.view },
canvas,