This repository contains a make file for easy compile and install of JavaCC.
The Java Compiler Compiler (JavaCC) is a lexer and parser generator for use with Java applications.
This make file can build the JavaCC tool on the following systems:
Download from
https://adoptium.net/temurin/releases/?version=11
Install into your system
# Linux
/opt/java/openjdk/linux_x86_64/jdk-11.0.23+9
# Windows
c:\opt\java\openjdk\x86_64\jdk-11.0.23+9
Set JAVA_HOME environment variable
# Linux
export JAVA_HOME=/opt/java/openjdk/linux_x86_64/jdk-11.0.23+9
# MSYS2/mingw
export JAVA_HOME=/c/opt/java/openjdk/x86_64/jdk-11.0.23+9
Download from
https://ant.apache.org/bindownload.cgi
Install into your system
# Linux
/opt/apache-ant/apache-ant-1.10.14
# Windows
c:\opt\apache-ant\apache-ant-1.10.14
git clone https://github.com/embed-dsp/ed_javacc.git
# Enter the ed_javacc directory.
cd ed_javacc
# Edit the Makefile for selecting the JavaCC source version.
vim Makefile
PACKAGE_VERSION = 7.0.13
# Download JavaCC source package into src/ directory.
make download
# Unpack source code into build/ directory.
make prepare
# Compile source code.
make compile
# Install build products.
sudo make install
# Install build products.
make install