4 ms·
I love the graphics. I would like the equivalent for Python and the GNU flex (lexer) RE's. No... wait.... I know what I want! I want a sphinx extension that a
by dbcurtis 9y ago
I love the graphics. I would like the equivalent for Python and the GNU flex (lexer) RE's.
No... wait.... I know what I want! I want a sphinx extension that allows me to include an RE in a Python docstring and have it render as a railroad track graphic in the generated documentation:
some_re_string = r'ab[0-9]*z'
""":regex: Any string starting whith 'ab', followed by
digits, ending with 'z'.
"""
That should be able to go pick up the documented string and render a railroad track diagram along with the text in the generated documentation.