fix: render bridge-emitted ISC shapes the corpus actually produces - #21
Merged
Merged
Conversation
Through the Ruby bridge the engine sees generated ISC, whose shapes
differ from the hand-written corpus in two ways:
- any(<single alias resolving to a plain string>) is a character
class — the generator inlines the unicode library's greek inside
any() — while a bare alias reference stays a literal sequence (the
qualified 404 pins). alalc-ell's gamma nasalization guards had
compiled to the literal 300-character alphabet through the bridge.
- a capture group in a result position renders as the parenthesised
inner text, like Ruby's build_item (bgnpcgn-zho writes
to capture("me, yao") for 么). The renderer rejected it and the
whole map failed to load through the bridge.
Bridge sweep (Compiler::Python over the full corpus): 8,238
examples, 0 failures.
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.
Through the Ruby bridge the engine sees generated ISC, whose shapes differ from the hand-written corpus in two ways:
any(<single alias resolving to a plain string>)is a character class — the generator inlines the unicode library'sgreekinsideany()— while a bare alias reference stays a literal sequence (the qualified-404 pins). alalc-ell's γ-nasalization guards had compiled to the literal 300-character Greek alphabet through the bridge, failing its 5 γκ examples.build_item— bgnpcgn-zho writesto capture("me, yao")for 么; the renderer rejected it and the whole map failed to load through the bridge.Bridge sweep (Compiler::Python over the full corpus, Ruby → generated ISC → this engine): 8,238 examples, 0 failures — from 425 at the campaign's start. Direct sweep stays 8,227/0. Suite 52 passed / 1 xpassed.