Skip to content

tdb: ELEMENT with missing '!' line terminator can silently eat the next line #57

Description

@richardotis

Example

$ Note missing '!' in next line
ELEMENT ZR   BCT_A5                    
FUNCTION EMBCCTI    298.15 -39.72; 6000 N !

Current Behavior

The TDB parser will concatenate these lines together like ELEMENT ZR BCT_A5 FUNCTION EMBCCTI 298.15 -39.72; 6000 N. Because the grammar rule for ELEMENTs is so permissive, it will silently ignore everything after the element name.

Expected Behavior

The parser should raise a ParseException.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions