How To Install uuagc on Debian 9

In this tutorial we learn how to install uuagc on Debian 9. uuagc is compiler for the Utrecht University Attribute Grammar system

Introduction

In this tutorial we learn how to install uuagc on Debian 9.

What is uuagc

uuagc is:

The Attribute Grammar system can be used to annotate the production rules of a grammar with inherited and synthesised attributes. The values of the attributes can be determined while parsing/traversing the abstract syntax tree and will give the semantic value of the tree.

The inherited attributes are values which are passed downwards through the abstract syntax tree and the synthesised attributes are passed upwards. Haskell expressions are used to describe the computation of the attributes.

The uuagc compiler takes a set files in which the attribute grammar is defined and generates a Haskell file that contains the data type definitions corresponding to the grammar, semantic functions and catamorphisms (functions that take a syntax tree and return the semantic value of that tree)

The (Utrecht University) Attribute Grammar system is part of the Haskell Utrecht Tools set.

There are three methods to install uuagc on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install uuagc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install uuagc

Install uuagc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install uuagc using apt by running the following command:

sudo apt -y install uuagc

Install uuagc Using aptitude

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

sudo aptitude update

After updating apt database, We can install uuagc using aptitude by running the following command:

sudo aptitude -y install uuagc

How To Uninstall uuagc on Debian 9

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

sudo apt-get remove uuagc

Uninstall uuagc And Its Dependencies

To uninstall uuagc and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove uuagc

Remove uuagc Configurations and Data

To remove uuagc configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge uuagc

Remove uuagc configuration, data, and all of its dependencies

We can use the following command to remove uuagc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge uuagc

Dependencies

uuagc have the following dependencies:

References

Summary

In this tutorial we learn how to install uuagc package on Debian 9 using different package management tools: apt, apt-get and aptitude.