[antlr-interest] Merry Xmas Terence!

Johannes Luber jaluber at gmx.de
Wed Dec 24 14:33:58 PST 2008


Gary R. Van Sickle schrieb:
...
> What I would suggest is the addition of an Appendix showing the mappings
> between the Java constructs shown in the book and how you have to do things
> if you're target language is something other than Java.  I'm thinking about
> things like Java: "$id.text" => C: "$id.text->chars", maybe in nice tables,
> one for each "Java Target => LanguageX Target" mapping.  I know this may be
> a quickly moving target, so maybe make it a web-only thing and direct people
> to it in the book.

While C may be a bit special, other language targets work the same as
Java. As long one uses the provided mappings, that is. The only
non-mapped but often-used attribute is count(), so one could think about
adding a language agnostic version, too.

Johannes


More information about the antlr-interest mailing list