Closed noprompt closed 11 years ago
As an exercise, I partially rewrote frak in python, and came across a similar issue, so I resolved it via control flow (lines 69 - 79)
https://github.com/lijim/regex-generate/blob/master/regex_gen.py
Excellent! I realized today I need to refactor some of the branch rendering code. Thanks for sharing this!
This:
produces
bit(?:[se])?
but should producebit[se]?
.