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

Correct FractionBox and other small changes #113

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

rocky
Copy link
Member

@rocky rocky commented Jan 5, 2025

FractionBox omission was noticed via the new box parsing work.

A slightly nicer repr() for Token - we make clear which parts (tag, text) are strings.

The other changes are more to complete a little more of the prior unfinished work.

@@ -1940,7 +1940,7 @@ FractionBox:
WolframLanguageData-corrected: 31
UnicodeCharacters.tr:
UnicodeCharacters-corrected.tr: 590
operator: "\/"
operator: "\\/"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the important change.

@@ -378,7 +378,7 @@ def __eq__(self, other):
)

def __repr__(self):
return f"Token({self.tag}, {self.text}, {self.pos})"
return f"Token({repr(self.tag)}, {repr(self.text)}, {self.pos})"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a slightly nicer repr which makes clear which parts (tag and text) are strings.

@rocky rocky requested a review from mmatera January 5, 2025 17:15
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 rocky merged commit 6733d40 into master Jan 5, 2025
12 checks passed
@rocky rocky deleted the correct-FractionBox-and-other-tweaks branch January 5, 2025 18:44
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