Thanks to all in advance for your help. Is there a sample available that demonstrates how to generate a lexer parser pair at runtime. I've searched a bit.Can't seem to find one. The naive approach would be something like ... org.antlr.Tool tool = new org.antlr.Tool("Grammar.g"); -- Rick