step-examples/12-1c-syntax/Ls047.stp
Sources
- T025, Q046, G088, N032
Description
The Part-21 grammar requires the leaves of a complex entity record (`#1=( A() B() C() )`) to be separated by whitespace, not commas. A writer that emits commas (carrying habit from argument lists) produces a token that a strict reader must reject.
Reproducer recipe
`#10=( CONVERSION_BASED_UNIT('DEG',#9), NAMED_UNIT(*), PLANE_ANGLE_UNIT() );` — commas between leaves.
Expected kernel behavior
Reject comma-separated leaves in strict mode; lenient mode may accept-with-warning.
Notes
**See also**: Ls010, Ls048. Synonyms: "complex entity leaves separated by commas", "multiple-inheritance leaves with comma separators", "STEP complex record uses commas not whitespace", "comma in complex entity rejected", "complex entity grammar violation".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'#\d+\s*=\s*\(\s*[A-Z_]+\([^)]*\),\s*[A-Z_]+')
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1/* Ls047 - Complex entity record: leaves separated by commas (not whitespace) 2 ---------------------------------------------------------------------- 3 Catalog section : §12.1c complex entity instances 4 Sources : T025, Q046, G088, N032 5 See also : Ls010, Ls048 6 ---------------------------------------------------------------------- 7 Defect 8 ISO 10303-21 complex entity leaves must be whitespace-separated: 9 #N=( LEAF_A(..) LEAF_B(..) LEAF_C(..) ) 10 A writer using commas between leaves (habit from argument lists) 11 produces a token that a strict reader must reject. 12 Expected behavior 13 Reject comma-separated leaves in strict mode; 14 lenient mode may accept-with-warning. 15 ---------------------------------------------------------------------- 16*/ 17ISO-10303-21; 18HEADER; 19FILE_DESCRIPTION(('Ls047 - complex entity leaves separated by commas'),'2;1'); 20FILE_NAME('Ls047.stp','2026-06-20T00:00:00',('auto-generated'),(''), 21 'auto-generated','',''); 22FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 23ENDSEC; 24DATA; 25#1=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0),#2); 26#2=( NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.) ); 27/* Correct reference for context */ 28#9=( NAMED_UNIT(*) SI_UNIT(.MILLI.,.RADIAN.) ); 29/* Defect: commas between complex-entity leaves (should be whitespace only) */ 30#10=( CONVERSION_BASED_UNIT('DEG',#9), NAMED_UNIT(*), PLANE_ANGLE_UNIT() ); 31ENDSEC; 32END-ISO-10303-21;