Re:Regexper – Regular expressions visualizer
by dbcurtis on Tuesday January 30, 2018 @11:59AM
(#16266851)
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.
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:
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.