Structured Index Markup Language (SIML) describes a markup language for indices.
SIML is human readable and machine parsable, implementing a syntax based on real-world book indices.
I made this to learn more about parsing with the Lark parser.
The utility of this project may be limited, but it was a fun project to work on!
pip install git+https://github.com/capjamesg/siml
The following syntaxes are available:
# a term with a page number range and sub terms
term, page-page
subterm, page
subterm, page
# a term with a single page number
term, page
# a term with a page range
term, page-page
# a term with a see also reference
term, page. See also: term
This project is licensed under an MIT license.