This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] Refractor Thompson matcher


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

Attachment: bfs.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]