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:
parent
645de97db2
commit
d55ae33848
4 changed files with 32 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue