Recover %EDITC with a measured edit mask #611
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-n-editc-20261022"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Recover %EDITC with a measured edit mask
rpg_editc.zig:%EDITC(value: 'C')and%EDITC(value: 'C': '$' | *ASTFILL)are the store of the value in a packed temporary, the editbuiltin call with the result temporary, the digits and an edit mask
constant, then the typed store of the result. The mask is a function of
the code, the digits and the decimal positions, and the compiler is
deterministic, so a mask measured on a probe proves the code pair; the
second code of a pair (2, 4, B, D, K, M, O, Q) blanks a zero value with a
test before the edit (blanks, or asterisks and one blank with *ASTFILL).
47 masks measured on
h-editcandh-editc2(batteries of 31 and 39forms, new probes),
d4-editc-codesandd4-edit; h-editc2 emitswithout a failure line. A mask no probe
measured keeps the statement unresolved; the dictionary batteries of the
loop tooling add masks.
rpg_value_units.zig: the unit replaces the block with one operationthat takes the value and gives the edited text.
rpg_eval.zig: an editedtext stored with the width of its mask fills the whole target, as a
literal does, so the blank fill after the store folds into one
assignment.
rpg_source.zig:*ASTFILLis a word.%EDITCof an expression (i / 100) and under%TRIM(theexam's family); the unit and the masks are in place for them.
Gates