79829266

Date: 2025-11-25 02:52:06
Score: 1.5
Natty:
Report link

You should be able to make a copy of the CMake templates and replace the call to the usual Antlr Tool with a call to the antlr-ng tool.

https://github.com/antlr/antlr4/blob/fbb20fee4510b4e1dbd23b835802742f40b6357e/runtime/Cpp/cmake/FindANTLR.cmake#L106-L111

I think I did that for my version of the CMake files in template form over here: https://github.com/antlr/grammars-v4/tree/61284ea7750274b996021b2b05fa003e9c173222/_scripts/templates/Cpp/cmake. For the default generator (i.e., the usual Java-based Antlr Tool 4.13.2), I replaced that with the "antlr4" Python wrapper, since it downloads Java as well as the .jar.

Reasons:
  • Probably link only (1):
  • No code block (0.5):
Posted by: kaby76