imjasonh / ideas

A place for me to file issues against myself for things I want to build when I'm bored
5 stars 0 forks source link

Literate regexp builder for Go #86

Closed imjasonh closed 2 years ago

imjasonh commented 3 years ago

Instead of regexp.MustCompile("[a-z0-9]+") something like re.OneOrMore(re.LowerCase, re.Numeral). With gofmt enforced nesting it should be much easier to read and debug.

For bonus points, accept a regexp string and generate the literate equivalent.

imjasonh commented 2 years ago

https://github.com/hedhyw/rex