aboutsummaryrefslogtreecommitdiff
path: root/devel/py-flexparser/pkg-descr
blob: 4bbdb0f2b5fd3d7bc7d6e7123df7fbc518e9dc06 (plain) (blame)
1
2
3
4
5
6
7
8
Why write another parser? I have asked myself the same question while working on
this project. It is clear that there are excellent parsers out there, but I
wanted to experiment with another way of writing them.

The idea is quite simple. You write a class for every type of content (called
here ParsedStatement) you need to parse. Each class should have a from_string
constructor. We used the typing module extensively to make the output structure
easy to use and less error-prone.