How To Install bisonc++-doc on Kali Linux

In this tutorial we learn how to install bisonc++-doc on Kali Linux. bisonc++-doc is Bison-style parser generator for C++ documentation

Introduction

In this tutorial we learn how to install bisonc++-doc on Kali Linux.

What is bisonc++-doc

bisonc++-doc is:

Bisonc++ was designed after `bison++’, created by Alain Coetmeur. Bisonc++ adds to bison++ a cleaner class-design, using a base-class to communicate lexical tokens to a lexical scanner.

Since bisonc++ generates the parser class as well as the parsing function. The class can easily be provided with additional members without needing polymorphic functions. Consequently, classes generated by bisonc++ have no virtual members and actually have but one public member: parse(), replacing the old-style bison and bison++ yyparse() function.

Bisonc++ offers many options, among which an option to define classes generated by bisonc++ in a separate namespace. This allows developers to define additional symbols, even outside of the class generated by bisonc++, without encountering name-collision problems. With bisonc++, artificial means to prevent name-collisions, like bison and bison++’s yy-convention are not required anymore when using bisonc++. Bisonc++ merely generates C++ code. If C code is required, bison should be used. Bisonc++’s grammar requirements are highly compatible with bison’s requirements, so converting a bison grammar into a bisonc++ grammar should be fairly simple.

In addition to the bisonc++ parser generator itself and several skeleton files, the package contains an extensive man-page, a full manual rewritten after the original bison manual, and several examples.

Some history: Bisonc++ versions 0.98 is a complete rewrite of an LALR(1) parser generator, as described in Aho, Sethi and Ullman’s (1986) book Compilers' (a.k.a. the Dragon Book’). Version 0.98 was completed in May 2005. Another major rewrite was completed one year later, May 2006, resulting in version 1.00.

This package provides the supplemental documentation for Bisonc++.

There are three methods to install bisonc++-doc on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install bisonc++-doc Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install bisonc++-doc using apt-get by running the following command:

sudo apt-get -y install bisonc++-doc

Install bisonc++-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install bisonc++-doc using apt by running the following command:

sudo apt -y install bisonc++-doc

Install bisonc++-doc Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install bisonc++-doc using aptitude by running the following command:

sudo aptitude -y install bisonc++-doc

How To Uninstall bisonc++-doc on Kali Linux

To uninstall only the bisonc++-doc package we can use the following command:

sudo apt-get remove bisonc++-doc

Uninstall bisonc++-doc And Its Dependencies

To uninstall bisonc++-doc and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove bisonc++-doc

Remove bisonc++-doc Configurations and Data

To remove bisonc++-doc configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge bisonc++-doc

Remove bisonc++-doc configuration, data, and all of its dependencies

We can use the following command to remove bisonc++-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge bisonc++-doc

Dependencies

bisonc++-doc have the following dependencies:

References

Summary

In this tutorial we learn how to install bisonc++-doc package on Kali Linux using different package management tools: apt, apt-get and aptitude.