CJex / regulex

:construction: Regular Expression Excited!
https://jex.im/regulex/
MIT License
5.71k stars 756 forks source link

Output as a directed graph? #40

Closed gausie closed 5 years ago

gausie commented 5 years ago

It might be an interesting idea to use this library to parse regex into a directed graph (perhaps using https://github.com/dagrejs/graphlib), and let other preexisting renderers produce the graphic (on the case of graphlib, https://github.com/dagrejs/dagre-d3 or https://github.com/dagrejs/dagre)

CJex commented 5 years ago

Transform regex syntax tree to some graph node types is very simple, I don't see the necessity to builtin this function.