step-examples/12-1c-syntax/Ls027.stp
Sources
- Q073, N043 (Implementors Issues 001/002)
Description
Edition 1 had inline SCOPE/ENDSCOPE delimiters; Editions 2/3 removed them but legacy translators still emit them. EXPORT lists also appeared inside ENDSCOPE in Ed.1. Implementors Issues 001/002 record the disagreement on whether modern processors must parse SCOPE blocks.
Reproducer recipe
`DATA;\n#1=PRODUCT(..);\nSCOPE\n #2=..;\nENDSCOPE;\nENDSEC;`
Expected kernel behavior
Strict Ed.2/Ed.3 reject; lenient skip-to-matching-ENDSCOPE without aborting; emit a single informational warning per file.
Notes
Synonyms: "legacy SCOPE block in STEP", "Edition 1 SCOPE/ENDSCOPE", "EXPORT list in STEP", "old-style scope delimiters", "Ed.1 scope blocks in modern STEP".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'SCOPE') and contains(b'ENDSCOPE')count(b'SCOPE') >= 2
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1/* Ls027 - Legacy SCOPE/ENDSCOPE blocks (Edition 1) and EXPORT lists 2 ---------------------------------------------------------------------- 3 Catalog section : §12.1c legacy structure 4 Sources : Q073, N043 (Implementors Issues 001/002) 5 ---------------------------------------------------------------------- 6 Defect 7 Edition 1 had inline SCOPE/ENDSCOPE delimiters; Editions 2/3 removed 8 them but legacy translators still emit them. EXPORT lists also appeared 9 inside ENDSCOPE in Ed.1. Implementors Issues 001/002 record the 10 disagreement on whether modern processors must parse SCOPE blocks. 11 Expected behavior 12 Strict Ed.2/Ed.3 reject; lenient skip-to-matching-ENDSCOPE without 13 aborting; emit a single informational warning per file. 14 ---------------------------------------------------------------------- 15*/ 16ISO-10303-21; 17HEADER; 18FILE_DESCRIPTION(('Ls027 - legacy SCOPE/ENDSCOPE blocks'),'2;1'); 19FILE_NAME('Ls027.stp','2026-06-20T00:00:00',('auto-generated'),(''), 20 'auto-generated','',''); 21FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 22ENDSEC; 23DATA; 24#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 25/* Defect: Edition-1 SCOPE block wrapping an inner entity */ 26SCOPE 27#2=DIRECTION('x',(1.,0.,0.)); 28ENDSCOPE; 29#3=CARTESIAN_POINT('p1',(1.,0.,0.)); 30/* Defect: second SCOPE block with EXPORT list (Edition-1 syntax) */ 31SCOPE 32#4=DIRECTION('z',(0.,0.,1.)); 33ENDSCOPE 34EXPORT(#4); 35ENDSEC; 36END-ISO-10303-21;