Re: parsing EXPRESS (ISO 10303-11)
[email protected] (Ingo Wichmann) Mon, 16 Sep 2002 22:31:04 +0200
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <[email protected]> |
Ingo Wichmann schrieb: > ## The next rule does not match correclty: > unique_clause: 'UNIQUE' ( unique_rule ';' )(s) > unique_rule: ( label ':' )(?) referenced_attribute ( ',' > referenced_attribute )(s?) > referenced_attribute: > attribute_ref | qualified_attribute The problem was, that the unique_clause matched to much. It matches the following keyword 'ENTITY'. And in contrary to what *,+ and friends in regexes do, there is no backtracking to get the keyword back in order for the super-role to match. So the superrule fails because of a sub-subrule having eaten to much. Sounds like politics. I will have to tell the indenifier-rule not to match some keywords. Ingo