The antlr4 directory contains a custom verion of the antlr4.72 C++ target that works faster than the original (Up to 2x). This was achieved by replacing some dynamic casting by some class type checking (using enums)