Ls034 — Enumeration value missing dotted delimiters or with bad casing

§12.1c enumeration token form

P1 — silent data loss

syntax

Sources

Description

ISO 10303-21 enum literals are `.IDENT.` where IDENT is an EXPRESS-conformant identifier (uppercase letters and digits only). Defects: missing closing dot, lower-case body, digit-leading body, quoted body (`."LEFT".`), missing leading dot.

Reproducer recipe

`#1=IFCSIUNIT(*,.LENGTHUNIT,$,.METRE.);` (missing closing dot after LENGTHUNIT); `#2=DIRECTION_FLAG(.true.);`; `#3=DIRECTION_FLAG(TRUE);`

Expected kernel behavior

Strict reject; lenient mode may case-fold the identifier but the dots are non-negotiable.

Notes

**See also**: Ls035. Synonyms: "STEP enum missing dotted delimiters", "lowercase enum body", "missing leading dot on STEP enum", "quoted enum value", "STEP enum value malformed".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Ls035

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1/* Ls034 - Enumeration value missing dotted delimiters or with bad casing
2   ----------------------------------------------------------------------
3   Catalog section : §12.1c enumeration token form
4   Sources         : T035, N021
5   See also        : Ls035
6   ----------------------------------------------------------------------
7   Defect
8     ISO 10303-21 enum literals are .IDENT. (uppercase, no quotes).
9     Defect 1: .true. -- lowercase body
10     Defect 2: TRUE   -- bare identifier without dotted delimiters
11     Defect 3: .LENGTHUNIT, -- missing closing dot (comma closes slot)
12     Defect 4: ."LEFT". -- quoted body inside the dots
13   Expected behavior
14     Strict reject; lenient mode may case-fold but dots are non-negotiable.
15   ----------------------------------------------------------------------
16*/
17ISO-10303-21;
18HEADER;
19FILE_DESCRIPTION(('Ls034 - malformed enumeration literals'),'2;1');
20FILE_NAME('Ls034.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/* Defect 1: lowercase enum body -- .true. instead of .T. */
26#1=DIRECTION_FLAG('flag-lc',.true.);
27/* Defect 2: bare unquoted identifier without dots -- TRUE */
28#2=DIRECTION_FLAG('flag-bare',TRUE);
29/* Defect 3: SIUNIT with missing closing dot after LENGTHUNIT */
30/* .LENGTHUNIT, has comma immediately after identifier — no closing dot */
31#3=NAMED_UNIT(*,.LENGTHUNIT,$);
32/* Defect 4: quoted body inside dots -- ."LEFT". */
33#4=CARTESIAN_POINT('pt',(1.,0.,0.));
34#5=DIRECTION('dir-quoted',(0.,1.,0.));
35#6=PLACEMENT_FLAG('pf',#4,#5,."LEFT".);
36ENDSEC;
37END-ISO-10303-21;