A simple parser for the BLT file format used by opavote.com.
cat sample.blt | python3 bltparser.py
from bltparser import BLTParser, BLTVisitor
from pprint import pprint
parser = BLTParser()
parse_tree = parser.parse(sys.stdin.read())
result = visit_parse_tree(parse_tree, BLTVisitor())
pprint(result, sort_dicts=False)
This project is licensed under the MIT License - see the LICENSE file for details