antlr-ng and CMake
11:17 23 Nov 2025

Was anyone able to use antlr-ng successfully with CMake to automate C++ target builds? Is it possible at all? There is no information regarding this topic on www.antlr-ng.org, despite the claims to serve as a drop-in replacement for antlr4 and to support C++ as a target language.

The find_package(antlr) way which I used previously with the now dead antlr4 is obviously of no use here. Maybe someone has already made a working CMakeFiles.txt and is willing to share as an example?

c++ cmake antlr