What are some ways to increase the performance of Antlr
Here are several effective ways to improve ANTLR performance:
Use the SLL prediction mode first - Set your parser to use PredictionMode.SLL
initially, which is faster than the default LL mode. Fall back to LL mode only when SLL fails:
parser.getInterpreter().setPredictionMode(PredictionMode.SLL);