step-examples/12-1a-encoding/Le014.stp
Sources
- T038/step-file-parser
Description
Scanner that counts apostrophe parity but does not first identify hex-escape blocks may treat hex digits like `27` (which is the ASCII apostrophe code point) as a closing quote. The recognizer must consume `\X\` (exactly two hex digits), `\X2\…\X0\`, etc. before applying apostrophe parity.
Reproducer recipe
`'pre\X\27post'`
Expected kernel behavior
Heal and accept: scanner must recognise `\X\` consumes exactly two hex digits and `\X2\` continues until `\X0\` before deciding apostrophe parity.
Notes
Synonyms: "hex 27 inside X2 escape closes string", "apostrophe code-point misread as quote", "X2 block contains 27 garbles parser", "string closes inside Unicode escape", "embedded apostrophe code in hex run".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'\\X\\27')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Le014: Apostrophe inside \X\27 hex-escape block decoded as string close; ISO 10303-21 §12.1a: \X\HH directive consumes exactly two hex digits and the byte value they encode is NOT an apostrophe delimiter; hex pair 27 is U+0027, the apostrophe code point; a scanner that applies apostrophe parity before consuming \X\-escape blocks reads \X\27 as: literal '\', 'X', '\', closing apostrophe (27 ignored as next token); the string 'pre\X\27post' must parse to the 8-char string pre'post; receiver must scan control directives before counting apostrophe parity; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le014'),'2;1'); 5FILE_NAME('Le014.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#8999=PERSON('pre\X\27post','apostrophe-in-x-escape',''); 12 13ENDSEC; 14END-ISO-10303-21;