[antlr-interest] how to say filter=true with combined parser/lexer?

Martin d'Anjou martin.danjou at neterion.com
Tue Feb 20 12:09:12 PST 2007


This begs the question: In a combined lexer/parser, is there a way to set 
the lexer option filter=true?

I tried @lexer::options { filter=true; } but it did not work.

Martin

On Tue, 20 Feb 2007, Martin d'Anjou wrote:

> Ok, the problem is I had options {filter=true;} from an old lexer grammar 
> file at the top of my parser grammar. Don't do that.
>
> On Tue, 20 Feb 2007, Martin d'Anjou wrote:
>
>> Hello,
>> 
>> My grammar hangs... or I should say when I use my compiled grammar it 
>> hangs. I don't know where or how. The -debug switch does not print 
>> information. This is using 3.0b6.
>> 
>> I ran it with strace to see if I learned something, and it hangs at
>> waitpid(-1,  <unfinished ...>
>> 
>> The CPU is at 0% utilization, so control-C is the only way out.
>> 
>> How can I debug this problem? Prune things out of my grammar until it no 
>> longer hangs?
>> 
>> Thanks,
>> Martin
>> 
>


More information about the antlr-interest mailing list