No more Refs, no more store, every top level def goes in the store, to update store values use :=

This commit is contained in:
Dustin Swan 2026-02-06 18:06:01 -07:00
parent 31ef279f16
commit 70569dfe48
No known key found for this signature in database
GPG key ID: 30D46587E2100467
9 changed files with 58 additions and 74 deletions

View file

@ -152,6 +152,14 @@ export class Parser {
let expr = this.parseInfix();
// Rebind
if (this.current().kind == 'colon-equals') {
const token = this.current();
this.advance();
const value = this.parseExpression();
return { kind: 'rebind', target: expr, value, ...this.getPos(token) };
}
// Match
if (this.current().kind === 'pipe') {
return this.parseMatch(expr);