How To Install byaccj.x86_64 on Amazon Linux 2

In this tutorial we learn how to install byaccj.x86_64 in Amazon Linux 2. byaccj.x86_64 is Parser Generator with Java Extension

Introduction

In this tutorial we learn how to install byaccj.x86_64 on Amazon Linux 2.

What is byaccj.x86_64

BYACC/J is an extension of the Berkeley v 1.8 YACC-compatible parser generator. Standard YACC takes a YACC source file, and generates one or more C files from it, which if compiled properly, will produce a LALR-grammar parser. This is useful for expression parsing, interactive command parsing, and file reading. Many megabytes of YACC code have been written over the years. This is the standard YACC tool that is in use every day to produce C/C++ parsers. I have added a “-J” flag which will cause BYACC to generate Java source code, instead. So there finally is a YACC for Java now!

We can use yum to install byaccj.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install byaccj.x86_64.

Install byaccj.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install byaccj.x86_64 using yum by running the following command:

sudo yum -y install byaccj.x86_64

How To Uninstall byaccj.x86_64 on Amazon Linux 2

To uninstall only the byaccj.x86_64 package we can use the following command:

sudo yum remove byaccj.x86_64

byaccj.x86_64 Package Contents on Amazon Linux 2

/usr/bin/byaccj
/usr/share/doc/byaccj-1.15
/usr/share/doc/byaccj-1.15/ACKNOWLEDGEMEN
/usr/share/doc/byaccj-1.15/README
/usr/share/doc/byaccj-1.15/tf.y
/usr/share/man/man1/yacc.cat.gz

References

Summary

In this tutorial we learn how to install byaccj.x86_64 on Amazon Linux 2 using yum.