Kumachan

Results 1 comments of Kumachan

You forget ‘(‘ and ‘)’ at the beginning and the end of `expr`, don’t you? Since your regex contains left-recursion (https://en.m.wikipedia.org/wiki/Left_recursion), the parser goes into infinite-loop! :(