[il-antlr-interest: 31134] Re: [antlr-interest] Changing lexers mid-stream

2011-01-12 Thread Dennis Sosnoski
On 01/12/2011 08:54 PM, Bart Kiers wrote: On Wed, Jan 12, 2011 at 8:44 AM, Dennis Sosnoski d...@sosnoski.com mailto:d...@sosnoski.com wrote: I'm wondering if there's an easy way to switch back and forth between different lexers while processing a stream. I'm working with Java

[il-antlr-interest: 31138] Re: [antlr-interest] Protocol message recognition - an amateur grammar question

2011-01-12 Thread Micha
Am 12.01.2011 17:02, schrieb Alex Lujan: I am trying Antlr v3 for message recognition, which must comply to a custom define protocol. I find myself unable to express the following rule (written in a non-standard notation): data: count number{count.value} just parse the lines as data:

[il-antlr-interest: 31143] Re: [antlr-interest] How do I find what Antlr is really telling me?

2011-01-12 Thread Jim Idle
I think that you might be better not using a grammar construct if the consume is always at the trailing end of the verb (but remember that not all SQL requires termination with ';' which makes it a terrible language to parser in general.) You can insert an action, or a dummy rule that uses code

[il-antlr-interest: 31144] [antlr-interest] Why Does Antlr3 Have Less Grammar Options Than Antlr2

2011-01-12 Thread Kevin Cherry
I have been using Antlr3 and have been very pleased with the power and flexibility of it. However, I wanted to accomplish some things with it and after searching through the book and online, I couldn't find any way to get it to work. I then ran across some grammar options like classHeaderPrefix,

[il-antlr-interest: 31146] [antlr-interest] AW ambiguous path visualization

2011-01-12 Thread Massimiliano Donini
Hi, in AW i have some problem to get ambiguous path visualization and cannot get ambiguous rules to become red even if compilations emits several warnings. My grammar is a pure parser that import another parser grammar. I can e-mail grammars if necessary. I have also noticed that AW doesn't