Skip to content

Introduce T term syntax mapping to in XMIR#5265

Merged
yegor256 merged 6 commits into
objectionary:masterfrom
maxonfjvipon:bug/#5264/t-term-syntax
Jun 26, 2026
Merged

Introduce T term syntax mapping to in XMIR#5265
yegor256 merged 6 commits into
objectionary:masterfrom
maxonfjvipon:bug/#5264/t-term-syntax

Conversation

@maxonfjvipon

Copy link
Copy Markdown
Member

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 token T becomes <o base="⊥"/>, and the printer turns it back into T.

The mapping follows the existing §9.3 table (QΦ, $ξ, ^ρ, void→), so T slots in as one more reserved single-character token. It collides with nothing — NAME is lowercase-led and Q is the only other uppercase glyph.

The subtle part is keeping opaque through the XSL pipeline. Two passes would otherwise mangle a bare : add-default-package prefixed it to Φ.⊥, and build-fqns tried to resolve it as a name. Both now exclude it, through a new special in _specials.xsl:

<xsl:variable name="eo:bottom" select="'⊥'"/>

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 new Value.Kind.TERM.

Closes #5264.

@github-actions github-actions Bot added the core label Jun 25, 2026
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

🚀 Performance Analysis

All 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
Test Base Score PR Score Change % Change Unit Mode
benchmarks.XmirBench.xmirToEO 13614.241 13690.366 76.124 0.56% ms/op Average Time

⚠️ Performance loss: benchmarks.XmirBench.xmirToEO is slower by 76.124 ms/op (0.56%)

@maxonfjvipon
maxonfjvipon marked this pull request as ready for review June 26, 2026 10:10
@maxonfjvipon

Copy link
Copy Markdown
Member Author

@yegor256 please check

@yegor256
yegor256 merged commit ceddcc2 into objectionary:master Jun 26, 2026
26 checks passed
@sonarqubecloud

Copy link
Copy Markdown

@0crat

0crat commented Jun 26, 2026

Copy link
Copy Markdown

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implementing T term syntax and mapping to in XMIR without altering XSL pipeline

3 participants