How To Install python2-lark-parser on CentOS 7
Introduction
In this tutorial we learn how to install python2-lark-parser
on CentOS 7.
What is python2-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 python2-lark-parser
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python2-lark-parser.
Install python2-lark-parser on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python2-lark-parser
using yum
by running the following command:
Install python2-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.
After updating yum database, We can install python2-lark-parser
using dnf
by running the following command:
How To Uninstall python2-lark-parser on CentOS 7
To uninstall only the python2-lark-parser
package we can use the following command:
References
Summary
In this tutorial we learn how to install python2-lark-parser
on CentOS 7 using yum
and dnf
.