How To Install python-funcparserlib on CentOS 7
Introduction
In this tutorial we learn how to install python-funcparserlib
on CentOS 7.
What is python-funcparserlib
Parser combinators are just higher-order functions that take parsers as their arguments and return them as result values. Parser combinators are * First-class values * Extremely composable * Tend to make the code quite compact * Resemble the readable notation of xBNF grammars Parsers made with funcparserlib are pure-Python LL(*) parsers. It means that it’s very easy to write them without thinking about look-aheads and all that hardcore parsing stuff. But the recursive descent parsing is a rather slow method compared to LL(k) or LR(k) algorithms. So the primary domain for funcparserlib is parsing little languages or external DSLs (domain specific languages).
We can use yum
or dnf
to install python-funcparserlib
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-funcparserlib.
Install python-funcparserlib on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-funcparserlib
using yum
by running the following command:
Install python-funcparserlib 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 python-funcparserlib
using dnf
by running the following command:
How To Uninstall python-funcparserlib on CentOS 7
To uninstall only the python-funcparserlib
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-funcparserlib
on CentOS 7 using yum
and dnf
.