Metadata-Version: 2.1
Name: aptwe
Version: 0.1
Summary: Parser framework
Home-page: https://github.com/phuelsdunk/aptwe
Author: Philipp Hülsdunk
Author-email: mail@huelsdunk.tech
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# aptwe

aptwe is a framework to create recursive descent parsers. It intends to define
parsers inside the Python syntax similarily to writing EBNF. For example:

~~~
nested_lists_ = Parser('NestedLists')
list_contents_ = int_ >> str_(',') >> int_
list_ = (str_('[') >> list_contents_ >> str_(']'))[getitem(1)]
nested_lists_[...] = int_ | list_

nested_lists_.loads('[1,[2,3]]') # Returns [1,[2,3]]
~~~


