Skip to content

Revise ?? parsing and Information cleanup. - #1985

Merged
rocky merged 6 commits into
masterfrom
Information-cleanup
Oct 6, 2026
Merged

rocky merged 6 commits into
masterfrom
Information-cleanup

Conversation

@rocky

@rocky rocky commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Revise parsing ??, so that it evaluates to an InformationData or InformationGridData object.
LongForm -> False, now just limits the fields put into an InformationData object.

Evaluation methods have been moved out of the Information class and into mathics.eval.properties

The usual linting has been done on nearby code.

@rocky
rocky force-pushed the Information-cleanup branch from 90bc29e to 6997fb1 Compare October 4, 2026 22:37
@rocky
rocky requested a review from mmatera October 4, 2026 22:53
@rocky
rocky force-pushed the Information-cleanup branch from 6997fb1 to 2ac50be Compare October 4, 2026 22:59
return Node("Missing", String("UnknownSymbol"), pattern_token)

pattern_arg = String(value=pattern_str, location=pattern_token.pos)
long_form = Symbol("True" if want_long_form else "False")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

where is long_form used/retrieved now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point. This needs more work.

By the way, even when that is fixed I fully expect there will be lots more to do. The first phase is just to get InformationData and InformationGridData exposed for formatting. After that we'll need to work on the formatters for each of the frontends.

@rocky rocky Oct 6, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LongForm now reinstated. It now just limits what fields gets in the InformationData object.

@rocky
rocky marked this pull request as draft October 5, 2026 12:52
rocky added 5 commits October 5, 2026 11:24
This has been added elsewhere.
Revise parsing ?? so that it evaluates to a InformationData or InformationGridData.
Evaluation methods moved out of Information class and into `mathics.eval.properties`
The usual linting done of nearby code.
Report missing symbol more often
@rocky
rocky force-pushed the Information-cleanup branch from 2ac50be to ff2ca7b Compare October 5, 2026 15:24
LongForm now just indicates how much data is put into InformationData.
@rocky

rocky commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@mmatera is this good enough for a minimal reworking of Information?

@mmatera

mmatera commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

@rocky, sure! Merge it when you think it is ready.

@rocky
rocky marked this pull request as ready for review October 6, 2026 10:58
@rocky

rocky commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@rocky, sure! Merge it when you think it is ready.

There is a lot more work do be done go get this near WMA. This is just a start.

@rocky
rocky merged commit 9586a89 into master Oct 6, 2026
15 checks passed
@rocky
rocky deleted the Information-cleanup branch October 6, 2026 10:59
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