|
|
|
@ -349,13 +349,9 @@ export class Parser {
|
|
|
|
expr = { kind: 'record-access', record: expr, field };
|
|
|
|
expr = { kind: 'record-access', record: expr, field };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (this.current().kind === 'open-brace') {
|
|
|
|
} else if (this.current().kind === 'open-brace') {
|
|
|
|
// if (expr.kind === 'constructor') {
|
|
|
|
|
|
|
|
// Function / constructor application
|
|
|
|
// Function / constructor application
|
|
|
|
const record = this.parsePrimary();
|
|
|
|
const record = this.parsePrimary();
|
|
|
|
expr = { kind: 'apply', func: expr, args: [record] };
|
|
|
|
expr = { kind: 'apply', func: expr, args: [record] };
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|