Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infix 1 #893

Open
wants to merge 4 commits into
base: fix_arithmetic_format
Choose a base branch
from
Open

Fix infix 1 #893

wants to merge 4 commits into from

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Jul 29, 2023

Once the arithmetic format is fixed, then we can fix how Infix[...] expressions are formatted.
Now,

  • Operator (the second argument) is always a string (or at least, Lists are not processed in an special way)
  • associativity is controlled by the group property of the elements of Infix, and not from outside, according to WL.

For example, Infix[{a, Infix[{b,c},"#",300, Left]}, "@", 300, Right] means that the inner Infix is embraced by parenthesis (because Left associative are embraced except if they are in the first position).

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