Skip to content

slinder1/loc_notation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loc_notation.py

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.

Notation Language

See the variable grammar for an EBNF-like grammar, and example.txt for some usage examples.

Setup

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

TODO

  • Add some tests
  • Experiment with more renderers
  • Add some documentation for the library interface

About

Parser for location notation for DWARF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages