Hi Adam,
I am planning to a write a function similar to Regexp::toString(), the
purpose is trying to make the printed regular expression easy to read
and short by sharing sub regular expressions. For example,
considering the regular expression (a | b) c (a | b), I prefer to
print it as: S1 = a | b, S0 = S1 c S1. Hence the key is to compare
whether two sub regular expressions are equal or not. I tried to use
int Regexp::cachedHashCode to identify a regular expression, however
it doesn't work. A counter example is bounding the CFG in file
"resources/othertools/ambiguity/053.cfg" with length larger than 30.
Do you have any suggestion how to identify a regular expression?
/Jun