step-examples/12-1c-syntax/Ls014.stp
Sources
- T024, Q087, N022, N046
Description
`*` denotes derived/inherited attribute; `$` denotes null OPTIONAL value. Generators substitute one for the other. Inside aggregate elements only `$` is permitted as a "no value" placeholder; `*` is an attribute-level marker only. Some senders also emit a value for a derived slot instead of `*`.
Reproducer recipe
`#1=SI_ENERGY_UNIT((#2),*,$,.JOULE.);` vs `#1=SI_ENERGY_UNIT((#2),$,$,.JOULE.);`; `#1=POLYLINE('',(*,#10,#11));` (`*` inside list).
Expected kernel behavior
Schema-aware kernel cross-checks `*`/`$` against the attribute kind in EXPRESS; reject `*` inside list elements; emit "expected `*` (derived)" rather than a generic type error.
Notes
Synonyms: "dollar versus star in STEP attribute", "* used where $ expected", "$ used in derived slot", "untyped parameter confusion", "STEP null vs derived marker".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb',\s*\*\s*[,)]')count(b'*') >= 2
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)
1/* Ls014 - Untyped (*) attribute used where derived not declared, 2 or '$' confused with '*' 3 ---------------------------------------------------------------------- 4 Catalog section : §12.1c parameter tokens 5 Sources : T024, Q087, N022, N046 6 Originally also catalogued as: Ad069 7 ---------------------------------------------------------------------- 8 Defect 9 '*' denotes a derived/inherited attribute; '$' denotes a null 10 OPTIONAL value. Generators substitute one for the other. Inside 11 aggregate elements only '$' is permitted as a "no value" placeholder; 12 '*' is an attribute-level marker only. Some senders also emit a real 13 value for a derived slot instead of '*'. 14 Expected behavior 15 Schema-aware kernel cross-checks '*' / '$' against the attribute 16 kind in the EXPRESS schema; reject '*' inside list elements; emit 17 "expected '*' (derived)" rather than a generic type error when the 18 position is a derived attribute carrying a value. 19 ---------------------------------------------------------------------- 20*/ 21ISO-10303-21; 22HEADER; 23FILE_DESCRIPTION(('Ls014 - star/dollar misuse in attribute slots'),'2;1'); 24FILE_NAME('Ls014.stp','2026-04-26T00:00:00',('auto-generated'),(''), 25 'auto-generated','',''); 26FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 27ENDSEC; 28DATA; 29#10=CARTESIAN_POINT('p',(0.0,0.0,0.0)); 30#11=CARTESIAN_POINT('q',(1.0,0.0,0.0)); 31/* Defect: '*' put in slot 3 where '$' (null OPTIONAL) is expected */ 32#20=SI_ENERGY_UNIT((#10),*,$,.JOULE.); 33/* Defect: '*' inside an aggregate element (only '$' may placeholder there) */ 34#30=POLYLINE('',(*,#10,#11)); 35/* Defect: a value supplied where the derived attribute should be '*' */ 36#40=DIMENSIONAL_EXPONENTS(0.0,0.0,0.0,0.0,0.0,0.0,42.0); 37/* Defect: '$' placed in a derived attribute position (should be '*') */ 38#41=NAMED_UNIT($); 39ENDSEC; 40END-ISO-10303-21;