Ls046 — STEP parser syntax error messages inaccessible to caller (e.g., entities with unclosed parentheses and missing string quotes)

§12.1c syntax / grammar

syntax

Sources

Description

A STEP reader parses a malformed file, accumulates syntax errors internally, then reports a generic "parsing failed" status to the caller. Detailed line / column / entity information is logged to stderr but not returned via API. Tools that wrap the reader (via Python / command-line) cannot present diagnostics to users. Typical fixture: two entities with distinct lexical syntax errors; e.g., one with an unclosed parenthesis and another with a missing string-literal quote.

Reproducer recipe

STEP file with two distinct syntax errors (e.g., unclosed parentheses, missing quotes) at lines 100 and 200; caller obtains status only.

Expected kernel behavior

Reject with structured diagnostics: reader returns a structured diagnostic list with file location, entity ID, and error text per error. Must not silently swallow syntax errors.

Notes

**See also**: Ad088. Synonyms: "STEP parser error message inaccessible", "syntax error not surfaced to caller", "unclosed paren error swallowed", "parser warnings don't reach API", "STEP error log not exposed".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Ad088

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Ls046 - Parser syntax errors not exposed via API
3 * Defect: two distinct syntax errors at lines 100 and 200; caller obtains generic failed status */
4HEADER;
5FILE_DESCRIPTION(('Ls046 test case','Parser syntax errors not exposed via API'),'2;1');
6FILE_NAME('Ls046.stp','2026-04-30T00:00:00',(''),(''),'cad-research-suite','','');
7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
8ENDSEC;
9DATA;
10#1=APPLICATION_CONTEXT('automotive_design');
11#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
12#100=BAD_SYNTAX(missing_quote;
13#200=ANOTHER_BAD_ENTITY(unclosed_paren;
14ENDSEC;
15END-ISO-10303-21;