- refactor bjork -> bjorklund

- refactor e -> bjork
- flip & desugared arguments
This commit is contained in:
Felix Roos 2025-10-07 22:35:29 +02:00
parent b7fa440bda
commit f33db5f07f
No known key found for this signature in database
3 changed files with 10 additions and 10 deletions

View file

@ -165,7 +165,7 @@ export class MondoParser {
const op = { type: 'plain', value: children[opIndex].value };
const left = children[opIndex - 1];
const right = children[opIndex + 1];
const call = { type: 'list', children: [op, left, right] };
const call = { type: 'list', children: [op, right, left] };
// insert call while keeping other siblings
children = [...children.slice(0, opIndex - 1), call, ...children.slice(opIndex + 2)];
children = this.unwrap_children(children);