[antlr-interest] Jim Idle: C-Runtime, position of elements

Jim Idle jimi at temporal-wave.com
Sun Oct 23 13:35:44 PDT 2011


If it is -1 then it is just saying that it is the very first character in
the very first line.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Udo Weik
> Sent: Sunday, October 23, 2011 11:28 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Jim Idle: C-Runtime, position of elements
>
> Hello Jim,
>
> my string looks like:
> 012345
>    abcd
> pos (lexer) is 1
>
> 012345
>   abcd
> pos (lexer) is 0
>
> 012345
> abcd
> pos (lexer) is -1
>
> Is that as it should be?
>
> And is there any way to get line/pos in the parser?
> I need this from all elements.
>
>
> Many thanks and greetings
> Udo
>
> 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