[antlr-interest] "How to build an ANTLR code generation target"

Johannes Luber JALuber at gmx.de
Wed Aug 25 06:58:02 PDT 2010


> There seems to be some information missing here[1]. It goes from "Start
> with a simple lexer like..." to "Look at the generated code" :)) I mean,
> my editor is *smart* but it's not that smart that it can generate code
> just by my typing some random... stuff into foo.g
> 
> Would anyone like to give me a clue, please?

For these kind of question please use the antlr-dev list. Regarding the "generated code" question: The ANTLR tool generates code depending on the input grammar. The text refers to this capabilities. You have to basically do the following thing:

1. Generate code
2. Load the code files
3. Look where the compiler/interpreter throws errors
4. Fix the code in generated code file so it works
5. Transfer the fix to template file
6. Go to 1.

BTW, this email arrived fine in my inbox. Not sure why it didn't show up in yours, but to accuse someone to have meddled with your email is rude at the very least. You could have asked: "Did my previous mail show up? I didn't receive it myself." Maybe it was eaten by the spam filter, maybe it got lost, maybe your email system kills emails where sender and receiver match, maybe...

Johannes
> 
> 
> [1]
> http://www.antlr.org/wiki/display/ANTLR3/How+to+build+an+ANTLR+code+generation+target
> 
> -- 
> Gary        Please do NOT send me 'courtesy' replies off-list.
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 ¿/mtl.!*
http://portal.gmx.net/de/go/dsl


More information about the antlr-interest mailing list