How To Install byaccj on Fedora 36

In this tutorial we learn how to install byaccj in Fedora 36. byaccj is Parser Generator with Java Extension

Introduction

In this tutorial we learn how to install byaccj on Fedora 36.

What is byaccj

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 or dnf to install byaccj on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install byaccj.

Install byaccj on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install byaccj

Install byaccj on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install byaccj

How To Uninstall byaccj on Fedora 36

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

sudo dnf remove byaccj

byaccj Package Contents on Fedora 36

/usr/bin/byaccj
/usr/lib/.build-id
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/b6320c8289c983f1c671b7a10331e8111927a0
/usr/share/doc/byaccj
/usr/share/doc/byaccj/ACKNOWLEDGEMEN
/usr/share/doc/byaccj/README
/usr/share/doc/byaccj/tf.y
/usr/share/doc/byaccj/yacc.cat

References

Summary

In this tutorial we learn how to install byaccj on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).