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

Split out no-meaning operators into separate builtin modules; add correct precedence for no-meaning infix operators #1190

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

rocky
Copy link
Member

@rocky rocky commented Nov 26, 2024

Operators without Built-in Meanings is now a "Guide section" with parts for postfix, prefix, and infix operators and operators that require additional Mathics3 module loading.

The precedence for infix operators is now set properly.

Operators without Built-in Meanings is now a "Guide section" with
parts for postfix, prefix and infix operators and operators that
require additional Mathics3 module loading.

The precedence for infix operators is not set properly.
@rocky rocky marked this pull request as draft November 26, 2024 23:40
@rocky rocky marked this pull request as ready for review November 27, 2024 08:30
@rocky rocky requested a review from mmatera November 27, 2024 08:30
@rocky
Copy link
Member Author

rocky commented Nov 27, 2024

After this is merge, there will be yet one more round that has to take place on both the MathicsScanner side and mathics-core side to redo table generation to include operator precedence for prefix and postfix no-meaning operators.

Note: class creation code has to be in the respective modules for
`type()` to put the newly created class in the proper module.

This leads to a little bit of duplication of code, but on the other hand,
it makes some tricky code easier to follow
@rocky
Copy link
Member Author

rocky commented Nov 27, 2024

After this merge, Mathics3 module graph needs to be revised to import DirectedEdge and UndirectedEdge from changed module locations.

@rocky rocky changed the title split no-meaning operators, add infix precedence Split out no-meaning operators into separate builtin modules; add correct precedence for no-meaning infix operators Nov 27, 2024
Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rocky
Copy link
Member Author

rocky commented Nov 27, 2024

Great - then onto the next steps (a little later on).

@rocky rocky merged commit 95782ea into master Nov 27, 2024
13 checks passed
@rocky rocky deleted the no-meaning-part2 branch November 27, 2024 09:22
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.

2 participants