Introduce T term syntax mapping to ⊥ in XMIR#5265
Merged
yegor256 merged 6 commits intoJun 26, 2026
Merged
Conversation
Contributor
🚀 Performance AnalysisAll benchmarks are within the acceptable range. No critical degradation detected (threshold is 100%). Please refer to the detailed report for more information. Click to see the detailed report
|
maxonfjvipon
marked this pull request as ready for review
June 26, 2026 10:10
Member
Author
|
@yegor256 please check |
|
|
@maxonfjvipon Thanks for the contribution! You've earned +12 points for this: +16 as a basis; -4 for too many hits-of-code (259 >= 100). Please, keep them coming. Your running score is +378; don't forget to check your Zerocracy account too). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



The fragile-objects epic #5261 needs a bottom term,
T, analogous to⊥in 𝜑-calculus. This adds it to the spec-driven parser as a self-contained leaf: the source tokenTbecomes<o base="⊥"/>, and the printer turns it back intoT.The mapping follows the existing §9.3 table (
Q→Φ,$→ξ,^→ρ, void→∅), soTslots in as one more reserved single-character token. It collides with nothing —NAMEis lowercase-led andQis the only other uppercase glyph.The subtle part is keeping
⊥opaque through the XSL pipeline. Two passes would otherwise mangle a bare⊥:add-default-packageprefixed it toΦ.⊥, andbuild-fqnstried to resolve it as a name. Both now exclude it, through a new special in_specials.xsl:Scope is syntax only. The runtime meaning of
⊥, the?.operator, and the rest of #5261 are separate tickets. Tests cover the parse (T→⊥surviving the full sheet chain), the print round-trip, and the newValue.Kind.TERM.Closes #5264.