A parser for a location description and location storage notation, with renderers into other representations.
Structured as both a library and a command-line utility.
See the variable grammar
for an EBNF-like grammar, and example.txt
for some
usage examples.
The only non-standard dependency is on lark
, the parser generator library.
The simplest way to get it is to install into your python3 user path:
$ python3 -m pip install -r requirements.txt
$ ./loc_notation.py email <example.txt
Optionally you can isolate the dependencies by activating a virtualenv first:
$ python3 -m venv venv
$ . venv/bin/activate
(venv)$ python3 -m pip install -r requirements.txt
(venv)$ ./loc_notation.py email <example.txt
- Add some tests
- Experiment with more renderers
- Add some documentation for the library interface