Package Info

python-funcparserlib


Recursive descent parsing library based on functional combinators


Development/Languages/Python

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).

The library itself is very small. Its source code is only 0.5 KLOC, with lots of comments included. It features the longest parsed prefix error reporting, as well as a tiny lexer generator for token position tracking.


License: MIT
URL: http://code.google.com/p/funcparserlib/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.3.6+repack-bp152.5.3.1 info openSUSE-2021-726 2021-05-14 15 SP2 Update
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-funcparserlib
  • python3-funcparserlib
0.3.6+repack-bp153.1.1 info GA Release 2021-03-31 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-funcparserlib
  • python3-funcparserlib
0.3.6+repack-3.3.1 info GA Release 2021-03-08 15 SP5 Subpackages
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-funcparserlib
0.3.6-bp152.4.8 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-funcparserlib
  • python3-funcparserlib
0.3.6-bp151.3.1 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-funcparserlib
  • python3-funcparserlib
0.3.6-bp151.2.11 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-funcparserlib
  • python3-funcparserlib
0.3.6-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-funcparserlib
  • python3-funcparserlib