[antlr-interest] antlr v3 C target EOF PUSHSTREAM

Jim Idle jimi at temporal-wave.com
Wed Jan 11 15:00:04 PST 2012


You can override nexttoken - I have explained how to do it on here before,
so you should find it antlr.markmail.org  basically you make a copy of the
functions you need and install your own pointers.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Rampon Jerome
> Sent: Wednesday, January 11, 2012 2:30 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] antlr v3 C target EOF PUSHSTREAM
>
>
>
>
> Hi,
>
>
> I already used PUSHSTREAM macro on C target to switch input streams
> with v3.
>
> I did similar work on Java with personal stack of stream and nextToken
> redefinition (someway close to some example found later in antlr wiki
> pages)
>
> I need to manipulate(push/pop) some additional data structures all
> along the stack of input streams.
> It is simple to add in my own stack of stream with extension and
> nextToken redefinition in Java.
>
> I do not see how to do a similar job with C target as nextToken
> redefinition is not possible
>
> Is there one way to redefine EOF token to add specific actions ? or
> anything that would permit expected
>
> actions ...
>
> I just want to manage data structures in a parallel stack and pop on
> EOF in v3 in C !!!
>
> Thanks for any idea
>
>
> Jerome
>
> 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