[antlr-interest] ANTLRWorks bug - no such element exception

"Paul Bouché (NSN)" paul.bouche at nsn.com
Fri Apr 17 15:19:39 PDT 2009


Jim Idle schrieb:
> Paul Bouché (NSN) wrote:
>   
>> Hi,
>>
>> I get the following error with my grammar when I try to use the debugger.
>>
>> [20:25:25] error(10):  internal error: 
>>
>> It does not occur when I leave namespaveDefinition from the following rule:
>> start
>>         :
>>         namespaceDefinition? ({propsmessage}?=>propsmessage | 
>> propertynode) EOF
>>         ;
>>     
> You are using a rule as a gated predicate evaluation expression, if you 
> need to rule to parse all the way through as a predicate then you need:
>
> (propsmessage)=>propsmessage | 
>
>
> Otherwise, you need to change the name of your gated predicate boolean variable.
>   
Thanks for your suggestion - sounded interesting, so gave it a try, but 
it did not work - I tried propsmessage_ - still same error.


Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090418/09389139/attachment.html 


More information about the antlr-interest mailing list