8 stdenv.mkDerivation rec {
12 url = "https://www.antlr2.org/download/antlr-${version}.tar.gz";
13 sha256 = "1ffvcwdw73id0dk6pj2mlxjvbg0662qacx4ylayqcxgg381fnfl5";
15 patches = [ ./2.7.7-fixes.patch ];
16 buildInputs = [ jdk ];
18 CXXFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION";
21 description = "Powerful parser generator";
23 ANTLR (ANother Tool for Language Recognition) is a powerful parser
24 generator for reading, processing, executing, or translating structured
25 text or binary files. It's widely used to build languages, tools, and
26 frameworks. From a grammar, ANTLR generates a parser that can build and
29 homepage = "https://www.antlr.org/";
30 license = licenses.bsd3;
31 platforms = platforms.unix;