bug or problem with syntactic predicate evaluation
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sivakumar_Ekambaram
Posted On:   Sunday, February 10, 2002 10:35 PM

We have a rule as follows..... rule: (id DOT id)=> id DOT id | id ; id: ID|keyword; keyword: k1|k2|k3|...|k126; When we compile the grammar, the generated code does not evaluate the syntactic predicate (id dot id). Always it is looking for the first alternate. So if just id is given, the parser throws error saying dot is needed. This error occurs only if my keyword rule is having more than 125 alternates. We noted that the generated bitset for the keyword varies between 125 and 126 alternates. This is affecting the generated code to check the syntactic predicate. Has anybody faced this problem? Any help regarding this wil   More>>

We have a rule as follows.....
rule: (id DOT id)=> id DOT id
| id
;
id: ID|keyword;
keyword: k1|k2|k3|...|k126;

When we compile the grammar, the generated code does not
evaluate the syntactic predicate (id dot id).
Always it is looking for the first alternate. So if just id is given,
the parser throws error saying dot is needed.

This error occurs only if my keyword rule is having more
than 125 alternates.
We noted that the generated bitset for the keyword varies
between 125 and 126 alternates. This is affecting the generated
code to check the syntactic predicate.

Has anybody faced this problem?
Any help regarding this will be appreciated.

   <<Less

Re: bug or problem with syntactic predicate evaluation

Posted By:   Terence_Parr  
Posted On:   Tuesday, February 12, 2002 12:11 AM

Hi. Can you try this with 2.7.2a2 from the website? I remember something like this got fixed.
About | Sitemap | Contact