Skip to content

A simple parser for the BLT file format used by opavote.com.

License

Notifications You must be signed in to change notification settings

teoc98/opavote-blt-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

opavote-blt-parser

License: MIT

A simple parser for the BLT file format used by opavote.com.

Prerequisites

  • Python 2.7, 3.4+. Other versions might work but are not tested.
  • Arpeggio

Sample usage

Standalone

cat sample.blt | python3 bltparser.py

As a module

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)

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A simple parser for the BLT file format used by opavote.com.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages