Skip to content

Conversation

@rocky
Copy link
Member

@rocky rocky commented Dec 27, 2022

Thanks @mmatera to getting this to the point where I can see the light at the end of the tunnel.

@rocky rocky force-pushed the Symbol-init-cleanup_2 branch 5 times, most recently from ae421de to e3c545c Compare December 27, 2022 01:58
rocky and others added 11 commits January 7, 2023 08:22
PredefinedSymbol acts more like a numeric constant.
Update builtin/atomic/symbols.py according to current standards.
* Some long lines split
* some linting
* correct a wrong symbol
We should be using Symbols insead of string where possible.
builtins_precedence is really used in eval/makeboxes so it is defined
there.

It is just initialized in `mathics.buitins`.
and try to clearify what is up here.
@rocky rocky force-pushed the Symbol-init-cleanup_2 branch from 2fde486 to 632b83a Compare January 7, 2023 14:04
@rocky
Copy link
Member Author

rocky commented Jan 7, 2023

@mmatera I have rebased this with the current master and made small changes to get this working.

Please look over all of the boxing changes here and advise if this is relevant, correct, and should go in.

@rocky rocky force-pushed the Symbol-init-cleanup_2 branch from 632b83a to c4c1e6d Compare January 7, 2023 14:12
@rocky
Copy link
Member Author

rocky commented Jan 7, 2023

@mmatera I have rebased this with the current master and made small changes to get this working.

Please look over all of the boxing changes here and advise if this is relevant, correct, and should go in.

Looking over myself, I am happy to put in a new PR with the boxing stuff removed until after release. I don't fully understand this, and the focus of this PR of this wasn't about boxing which somehow slipped in here as a bug fix for the Symbol work.

@mmatera
Copy link
Contributor

mmatera commented Jan 7, 2023

@rocky, as you prefer. The idea was to move out of mathics.builtin.makeboxes the implementation of parenthesize and make_boxes_infix, in the line of moving the evaluation logic outside the mathics.builtin module.

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.

3 participants