Just realized point { x = 1 } was ambiguous, could be record update or function application. changed record update syntax to: point.{ x = 1 }. And starting on ui components

This commit is contained in:
Dustin Swan 2026-02-03 12:17:41 -07:00
parent 645de97db2
commit d55ae33848
No known key found for this signature in database
GPG key ID: 30D46587E2100467
4 changed files with 32 additions and 14 deletions

View file

@ -7,6 +7,7 @@ import { builtins } from './builtins';
import counterApp from './counter.cg?raw';
import stdlibCode from './stdlib.cg?raw';
import uiComponentsCode from './ui-components.cg?raw';
import textInputCode from './textinput-test.cg?raw';
import testCode from './test.cg?raw';
@ -15,7 +16,7 @@ canvas.width = 800;
canvas.height = 600;
document.body.appendChild(canvas);
const cgCode = stdlibCode + '\n' + textInputCode;
const cgCode = stdlibCode + '\n' + uiComponentsCode + '\n' + textInputCode;
const tokens = tokenize(cgCode);
const parser = new Parser(tokens);