title: In ANTLR 3, how do I generate a lexer (and parser) at runtime instead of ahead of time?
body: <p>I want to generate an antlr lexer at runtime -- that is, generate the grammar and from the grammar generate the lexer class, and its supporting bits at runtime. I am happy to feed it into the the java compiler, which is accessible at runtime. </p>