Hi, I have implemented Karel language support in NetBeans Platform and I will use ANTLR to generate lexer, parser and AST. Karel language is described on http://karelnb.sourceforge.net/introduction.html
But Karel's keywords are nationale specific (and case insensitive) - the STEP command in English is KROK in Czech. I tried several ways. Using predicates generates code into parser but not in lexer. Advices in mailing list didn't help me. How can I test keywords in different languages in lexer? Can I translate localized keywords into basic (English) in AntlrCharStream ? I suppose to load localized keywords in each lexer/parser. Program will be able to translate Karel sources from one language to others. Thanks for help. Milos Silhanek [email protected] List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
