[prev in list] [next in list] [prev in thread] [next in thread] 

List:       antlr-interest
Subject:    [antlr-interest] Ignoring comments in predicates problem
From:       monty () codetransform ! com (Monty Zukowski)
Date:       2005-01-31 16:56:48
Message-ID: 41FEA997.4020604 () codetransform ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic