How To Install python34-lark-parser on CentOS 7

In this tutorial we learn how to install python34-lark-parser on CentOS 7. python34-lark-parser is Lark is a modern general-purpose parsing library for Python

Introduction

In this tutorial we learn how to install python34-lark-parser on CentOS 7.

What is python34-lark-parser

Lark is a modern general-purpose parsing library for Python. Lark focuses on simplicity and power. It lets you choose between two parsing algorithms Earley It is the default. LALR(1) other pure-python parsing libraries. Both algorithms are written in Python and can be used interchangeably with the same grammar (aside for algorithmic restrictions). See “Comparison to other parsers” for more details. Lark can auto magically build an AST from your grammar, without any more code on your part. Features - EBNF grammar with a little extra - Earley & LALR(1) - Builds an AST auto magically based on the grammar - Automatic line & column tracking - Automatic token collision resolution (unless both tokens are regexps) - Python 2 & 3 compatible - Unicode fully supported

We can use yum or dnf to install python34-lark-parser on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python34-lark-parser.

Install python34-lark-parser on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python34-lark-parser using yum by running the following command:

sudo yum -y install python34-lark-parser

Install python34-lark-parser on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python34-lark-parser using dnf by running the following command:

sudo dnf -y install python34-lark-parser

How To Uninstall python34-lark-parser on CentOS 7

To uninstall only the python34-lark-parser package we can use the following command:

sudo dnf remove python34-lark-parser

References

Summary

In this tutorial we learn how to install python34-lark-parser on CentOS 7 using yum and dnf.