step-examples/12-1c-syntax/Ls003.stp
Sources
- T022, N018, stepcode #244 #291
Description
ISO 10303-21 specifies upper-case `E` for the REAL exponent; lower-case `e`, embedded whitespace (`1.5 E+3`), or `+` sign in the exponent (`1e+18`) are non-conforming. Locale-aware printers also produce these.
Reproducer recipe
`(1.5e+3,0.,0.)`, `(1.5 E+3,0.,0.)`, `1.E+18`.
Expected kernel behavior
Lex `[+-]?\d+(\.\d*)?([eE][+-]?\d+)?` permissively; emit warning for non-canonical subsets.
Notes
**See also**: Ls001. Synonyms: "lowercase e in REAL exponent", "1e+18 instead of 1E+18", "whitespace in REAL exponent", "STEP exponent has plus sign", "non-standard exponent in STEP".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'\d[eE]\+?\d') and (matches(rb'\d e\d') or matches(rb'\d\.?e[+-]?\d'))matches(rb'\d[Ee][+-]?\d')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ls003: Lower-case e exponent or whitespace around exponent in REAL literal; ISO 10303-21 specifies upper-case E for the REAL exponent; lower-case e, embedded whitespace (1.5 E+3), or + sign in the exponent (1e+18) are all non-conforming; locale-aware printers produce these variants; defect: DIRECTION with lower-case e exponent (1.5e+3) in the first coordinate, whitespace before exponent (0.5 E+0) in the second coordinate, and explicit plus sign in exponent (1.0e+0) in the third coordinate; receiver must lex permissively but emit a warning for each non-canonical subset; must not silently accept without diagnostic; also: VECTOR magnitude uses 1.0e+1 (lower-case e with plus sign); bug-reporter synonyms: lowercase e in REAL exponent, 1e+18 instead of 1E+18, whitespace in REAL exponent, STEP exponent has plus sign, non-standard exponent in STEP; GEOMETRIC_CURVE_SET IS NOT used â DIRECTION entity is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('Ls003'),'2;1'); 5FILE_NAME('Ls003.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9/* Defect 1: lower-case 'e' exponent: 1.5e+3 */ 10/* Defect 2: whitespace before exponent: 0.5 E+0 (non-conforming) */ 11/* Defect 3: lower-case e with plus sign in magnitude: 1.0e+0 */ 12#1=DIRECTION('',(1.5e+3,0.,0.)); 13#2=CARTESIAN_POINT('origin',(0.,0.,0.)); 14#3=VECTOR('v',#1,1.0e+1); 15#4=LINE('l',#2,#3); 16ENDSEC; 17END-ISO-10303-21;