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

"Paul Bouché (NSN)" paul.bouche at nsn.com
Mon Apr 20 04:56:59 PDT 2009


Paul Bouché (NSN) schrieb:
> 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.
This seems to be an instance of a known bug - 
http://www.antlr.org/jira/browse/ANTLR-378 :'(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090420/e15b2244/attachment.html 


More information about the antlr-interest mailing list