Open GoogleCodeExporter opened 9 years ago
It should be noted that this feature will allow variable length trailing
contexts like the following
(a*)b(a*)/(a+)b
Note that the both part of the RegEx are variable length. Further, they have
overlapping regions.
The way flex does the match is by re-run the first part of RegEx again, but the
result is incorrect because part of a should belong to the trailing context.
flex would detect issue and gives a warning at compile time.
It should be noted that the algorithm used to deal with this issue will take up
to O(k*n) space, where k is the number of sub-expressions, and n is the length
of the match.
Original comment by superdup...@gmail.com
on 6 Jan 2012 at 7:11
Original issue reported on code.google.com by
superdup...@gmail.com
on 6 Jan 2012 at 6:29