Ls020 — Trailing semicolon after `ENDSEC` missing

§12.1c structural / framing

syntax

Sources

Description

Each `ENDSEC` must be followed by a semicolon. Files sometimes carry `ENDSEC` followed directly by a newline and the next section keyword.

Reproducer recipe

`HEADER;\n..\nENDSEC\nDATA;`

Expected kernel behavior

Reject in strict mode; lenient may accept and warn.

Notes

Synonyms: "ENDSEC without trailing semicolon", "STEP ENDSEC missing semicolon", "section terminator no semicolon", "ENDSEC followed by newline only", "STEP ENDSEC newline before next keyword".

Expected validation

occt=reject/reject gmsh=reject ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1/* Ls020 - Trailing semicolon after ENDSEC missing
2   ----------------------------------------------------------------------
3   Catalog section : §12.1c structural / framing
4   Sources         : N049
5   Originally also catalogued as: Ad066
6   ----------------------------------------------------------------------
7   Defect
8     Each ENDSEC must be followed by a semicolon. Files sometimes carry
9     ENDSEC followed directly by a newline and the next section keyword,
10     usually because a hand-edited file dropped the terminator or a
11     generator concatenated sections without inserting it.
12   Expected behavior
13     Strict reject ("expected ';' after ENDSEC"); lenient may accept and
14     warn once per section.
15   ----------------------------------------------------------------------
16   Reproducer
17     HEADER;
18     ...
19     ENDSEC               <- missing ';'
20     DATA;
21   ----------------------------------------------------------------------
22*/
23ISO-10303-21;
24HEADER;
25FILE_DESCRIPTION(('Ls020 - ENDSEC without trailing semicolon'),'2;1');
26FILE_NAME('Ls020.stp','2026-04-26T00:00:00',('auto-generated'),(''),
27  'auto-generated','','');
28FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
29ENDSEC
30DATA;
31#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0));
32#20=DIRECTION('x',(1.0,0.0,0.0));
33#30=AXIS2_PLACEMENT_3D('placement',#10,#20,$);
34ENDSEC;
35END-ISO-10303-21;