Skip to content

Conversation

b-studios
Copy link
Collaborator

@b-studios b-studios commented Jul 22, 2025

This PR adds a few more infix operators. This is mostly just lexing and parsing so doesn't come with a lot of conceptual cost for the implementation.

A few things are not clear / implemented:

  • we should name things consistently (I actually would like to rename infixAdd to InfixPlus, but this will break a lot of things)
  • is this slowing down the parser? (for precedence it is now deeply nested)
  • is the precedence ok?
  • should pipe left and right be by-name? This might open up some cool usages.
  • right now the new tokens are added as one batch, we might want to clean them up by sorting them somehow
  • I didn't add a === b and a !== b since the tokens === are already used to represent ==, ahhh.

@b-studios b-studios marked this pull request as ready for review July 28, 2025 15:17
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.

1 participant