[Patch] Refractor Thompson matcher

Tim Shen timshen91@gmail.com
Sun Jul 28 04:13:00 GMT 2013


Refractor the whole Thompson matcher using the queue-based(BFS)
Bellman-Ford algorithm. Fix the grouping problem.

The original implementation uses a stack, which possibly runs slower
when deduplicating; and cannot handle gourping correctly.

The patch may not be very clear, so here's the whole files:
https://github.com/innocentim/gcc/tree/tim/regex/libstdc++-v3/include/bits

Thanks!


-- 
Tim Shen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfs.patch
Type: application/octet-stream
Size: 20503 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20130728/b81a2fe4/attachment.obj>


More information about the Libstdc++ mailing list