Decode any %EDITC edit mask from its grammar #614

Manually merged
binjovi-bot merged 2 commits from rpg-9-n-editc-third-20261023 into trunk 2026-10-23 04:37:25 +00:00
Owner

Decode any %EDITC edit mask from its grammar

  • rpg_editc.zig: generate builds the edit mask of a code pair from the
    digits, the decimal positions, the fill (blank or *ASTFILL) and the
    currency symbol; decode finds the code pair, positions and third
    argument of a mask by generating each candidate. The grammar is read from
    the 77 measured masks of the table, and a test regenerates every one of
    them. A mask that no probe measured now reads when the grammar covers it.
    16 more measured masks (third argument and code Y at digits 11, probe
    h-editc7).
  • rpg_eval.zig: the divisor of a %DEC division is not rescaled, so a
    decimal literal there has 0 positions.
  • The held-out program: 140 of 148 statements emitted, 8 failures (134 and
    14 before); its six %TRIM(%EDITC(%DEC(...))) statements read.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"emit":{"worse":[],"better":2,"newly_clean":0,"clean_delta":0,"base":203,"new":203},"twins":{"groups":410,"recovered":397,"regressions":[],"newly":1},"allgroups":{"regressions":[],"newly":["savf/LEMONADE/archive.savf 6","savf/SC-CONSTRUCT/TRPG2/archive.savf 1","savf/SC-ILE/EXPERIMENTS/h-editc5/stripped/object.savf 28","savf/SC-ILE/EXPERIMENTS/h-editc6/stripped/object.savf 29"],"worse":[]},"full_check":{"exit":0,"seconds":565}}
# Decode any %EDITC edit mask from its grammar - `rpg_editc.zig`: `generate` builds the edit mask of a code pair from the digits, the decimal positions, the fill (blank or *ASTFILL) and the currency symbol; `decode` finds the code pair, positions and third argument of a mask by generating each candidate. The grammar is read from the 77 measured masks of the table, and a test regenerates every one of them. A mask that no probe measured now reads when the grammar covers it. 16 more measured masks (third argument and code Y at digits 11, probe `h-editc7`). - `rpg_eval.zig`: the divisor of a `%DEC` division is not rescaled, so a decimal literal there has 0 positions. - The held-out program: 140 of 148 statements emitted, 8 failures (134 and 14 before); its six `%TRIM(%EDITC(%DEC(...)))` statements read. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"emit":{"worse":[],"better":2,"newly_clean":0,"clean_delta":0,"base":203,"new":203},"twins":{"groups":410,"recovered":397,"regressions":[],"newly":1},"allgroups":{"regressions":[],"newly":["savf/LEMONADE/archive.savf 6","savf/SC-CONSTRUCT/TRPG2/archive.savf 1","savf/SC-ILE/EXPERIMENTS/h-editc5/stripped/object.savf 28","savf/SC-ILE/EXPERIMENTS/h-editc6/stripped/object.savf 29"],"worse":[]},"full_check":{"exit":0,"seconds":565}} ```
binjovi-bot manually merged commit 71b1f3ed5c into trunk 2026-10-23 04:37:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!614
No description provided.