[antlr-interest] Grammar help

Brian Catlin BrianC at sannas.org
Tue Mar 16 00:10:34 PDT 2010


Thanks Bart.  Jeez, I feel stupid.

While that gets rid of those warnings (why don't the warnings print a
reasonable line number?  I would call that a BUG), the fundamental problem
of being able to parse (or otherwise capture the file name) still exists.

Any ideas?

 -Brian

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Bart Kiers
Sent: Tuesday, March 16, 2010 14:37
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Grammar help

On Tue, Mar 16, 2010 at 7:35 AM, Bart Kiers <bkiers at gmail.com> wrote:

> On Tue, Mar 16, 2010 at 4:54 AM, Brian Catlin <BrianC at sannas.org> wrote:
>
>>
>> When I compile the grammar with ANTLR, I get the following:
>>
>>
>>
>> warning(149): Commands.g:0:0: rewrite syntax or operator with no 
>> output option; setting output=AST
>>
>
>
> ...
>

The same goes for:

qualifier
  : ALL
  ! CODE   // should be a '|' instead of a '!'
  | TABLE
  ;

Bart.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list