Hi,<br><br>What's the best way to search a buffer for a list of patterns using ragel?<br><br>I've tried:<br><br>search = A | B | C;<br><br>main := any* search;<br><br>which works ok but generates a lot of states.<br>
<br>I've also tried using a scanner like:<br><br>main := |*<br> A;<br> B;<br> C;<br> any;<br>*|;<br><br>which also works and generates much fewer states, but I'm not interested in writing extra code to handle te, ts, eof etc.<br>
<br><br>