$ go install github.com/ikawaha/factors@latest
To draw parse trees, demo application uses graphviz . You need graphviz installed.
$ factors --help
command: factors <regexp_pattern>
server: factors -http=:6060
-http string
HTTP service address (e.g. ':6060')
Example
$ factors '((GA|AAA)*)(TA|AG)'
Exact: θ
Prefix: θ
Suffix: {AG, TA}
Fragment: {AG, TA}
MIT