Skip to content

Compile and install of JavaCC. The Java Compiler Compiler (JavaCC) is a lexer and parser generator for use with Java applications.

License

Notifications You must be signed in to change notification settings

embed-dsp/ed_javacc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Compile and Install of the JavaCC Tool

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:

Prerequisites

Java JDK 11

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

Apache Ant 1.10.14

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

Get Source Code

ed_javacc

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

Build

# Unpack source code into build/ directory.
make prepare
# Compile source code.
make compile

Install

Linux

# Install build products.
sudo make install

Windows: MSYS2/mingw64 & MSYS2/mingw32

# Install build products.
make install

About

Compile and install of JavaCC. The Java Compiler Compiler (JavaCC) is a lexer and parser generator for use with Java applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published