Fixing the issue that stopped this from parsing correctly: 'sum = x y \ x + y; sum 5 3'

This commit is contained in:
Dustin Swan 2026-02-01 16:09:49 -07:00
parent f2f81b5ed6
commit 1d0f1d5423
No known key found for this signature in database
GPG key ID: 30D46587E2100467
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ export class Parser {
const nameToken = this.expect('ident');
const name = (nameToken as { value: string }).value;
this.expect('equals');
const value = this.parseInfix();
const value = this.parseExpression();
this.expect('semicolon');
const body = this.parseExpression();