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

Check for unknown labels in usage commands #177

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

tirix
Copy link
Collaborator

@tirix tirix commented Jan 6, 2025

Because the usage command was checking the database in a single pass, it did not know about axioms after the current cursor, and was assuming that these axioms existed and were not used.
However, this has the side effect of not being able to report unknown labels in usage commands.

This PR fixes this, and reports unknown labels in usage commands.
One test added.

This is a follow-up of #175: Following that PR, a missing space between two usage labels like in $j 'exel' avoids 'ax-10''ax-13'; will now be parsed as refering to ax-10'ax-13 (doubled quote as escape). To be complete, the tool now needs to report this unknown label.

@tirix tirix requested a review from digama0 January 6, 2025 09:41
@tirix tirix merged commit 9074259 into metamath:main Jan 13, 2025
4 checks passed
@tirix tirix deleted the usage-unknown branch January 13, 2025 09:38
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