[antlr-interest] Ignoring comments in predicates problem

Monty Zukowski monty at codetransform.com
Mon Jan 31 13:56:39 PST 2005


Terence Parr wrote:
> On Jan 30, 2005, at 11:48 AM, Paul J. Lucas wrote:
> Hmm...this is odd.  You have k>=2 I see.  It should not enter ignore if 
> there is no "(:".  Can you tell me what the _tokenSet_7 set looks like 
> from:
> 
>>         if ((_tokenSet_6.member(LA(1))) && (_tokenSet_7.member(LA(2)))) {
>>             mIgnore(false);
>>         }
>>         else if ((LA(1)=='(') && (_tokenSet_8.member(LA(2)))) {
>>         }
> 
> 

By the way folks, you do that by turning the option 
'codeGenBitsetThreshold' very high, like 999999;  Then it won't use 
bitsets unless there are 999999 elements in them....

Monty


More information about the antlr-interest mailing list