Skip to content

parser: expression parsing changes + migration-safety diagnostics#115

Merged
Philipp15b merged 5 commits into
mainfrom
parser-updates
Mar 14, 2026
Merged

parser: expression parsing changes + migration-safety diagnostics#115
Philipp15b merged 5 commits into
mainfrom
parser-updates

Conversation

@Philipp15b

Copy link
Copy Markdown
Collaborator

breaking change:

  • update expression precedence/associativity (+ - * / % && left-assoc, ↘/↖ at implication level, < <= > >= != non-assoc)

for migration safety, we compare new parse against old parser behavior and reject ambiguous changed parses.

also updated tests, and unfortunately now the pgf example does not work anymore

fixes #112

breaking change:
- update expression precedence/associativity
  (`+ - * / % &&` left-assoc, `↘/↖` at implication level, `< <= > >= !=` non-assoc)

for migration safety, we compare new parse against old parser behavior
and reject ambiguous changed parses.

also updated tests, and unfortunately now the pgf example does not work anymore
i thought associative == has a useful application, but it doesn't
@Philipp15b Philipp15b merged commit 7e37b31 into main Mar 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing order of expressions

1 participant