[ragel-users] Searching a buffer
plop at redbrick.dcu.ie
Mon Apr 20 21:45:22 UTC 2009
What's the best way to search a buffer for a list of patterns using ragel?
search = A | B | C;
main := any* search;
which works ok but generates a lot of states.
I've also tried using a scanner like:
main := |*
which also works and generates much fewer states, but I'm not interested in
writing extra code to handle te, ts, eof etc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ragel-users