[antlr-interest] Having trouble with creating a parser for my desired grammar. Running afoul of multiple alternatives warnings

Jarrod Roberson jarrod at vertigrated.com
Wed Nov 16 12:01:26 PST 2011


On Wed, Nov 16, 2011 at 2:55 PM, Bart Kiers <bkiers at gmail.com> wrote:

> On Wed, Nov 16, 2011 at 8:45 PM, Jarrod Roberson <jarrod at vertigrated.com>wrote:
>
>>
>> > Or even the input: "123 /* some comments */ . /* more comments */ 5"
>> would
>> > be a valid `number`... :)
>> >
>>
>> Is there a way to support both
>>
>> a -> 1.
>> b -> 1.1.
>>
>> in a pure lexer rule then, I didn't think there was?
>>
>>
> See my earlier reply: http://antlr.markmail.org/message/wtwq2vbmhedek2cn in
> this thread.
>

That message hadn't made it into my inbox yet.

Thanks that works after I fixed  the input.LA(2)<='9'

You guys help is dragging me along into the world of ANTLR!
-- 
Jarrod Roberson


More information about the antlr-interest mailing list