[antlr-interest] Antlr multi lexer .

Monty Zukowski monty at codetransform.com
Mon Nov 8 08:50:11 PST 2004


Perhaps you want to use the existing C parser, see the link below.  It 
includes an ANSI C89 parser as well as a GCC 2.95.3 parser.

Monty

ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit -- 
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html

On Nov 8, 2004, at 5:30 AM, kabaz11 wrote:

>
>
>
> Hellow ! My name is : Shlomo Kabaz .
>
> I am new to this group .
>
> I am trying to build a parser for "C" language .
> Started with your code of ansi_c .
> Trying to convert "ansi.g" that was probably written for pccts
>  to antlr 2.7.1 .
>
> I met the article "Conversion of a C++ Parser from PCCTS to ANTLR"
>   that was very helpfull .
>
> My question is about multiLexer for the parser that is presented in
>  the ansi.g file by the "#lexclass" directive .
>
> I met also the new class "TokenStreamSelector" .
>
> But did not understand how exactly the method should be implemented
>   ( in cpp ) .
>
> Regards .
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list