<div>Hi, Ming</div><div>š</div><div>> I would expect the myaction would be run when the machine consumes <br />> the first chunk and waiting for the rest of the data to complete the <br />> matching.</div><div>š</div><div>AFAIK machine itself does not distinguish chunks</div><div>EOF action should be executed in the very end of the last chunk, which you should explicitly</div><div>mark yourself by setting </div><div>const char* eof = pe</div><div>23.01.2012, 22:19, "Ming Fu" <ming.fu@netsweeper.com>:</div><blockquote type="cite"><p>Hi,<br /><br />I am new to the ragel, I was trying to see the effect of eof action.<br /><br />I made up some patterns and defines an eof action for the pattern3.<br /><br />something like:<br /><br />pattern1 = ....<br />pattern2 = ....<br />pattern3 = ( pattern1 | pattern2) $eof myaction ;<br /><br />I send in a block of data that would match pattern1, the machine report <br />matching pattern3 and the myaction is not run.<br /><br />If I send in the same block of data, but in two chunks, the machine <br />report matching after the second chunk is processed, but myaction is not <br />run. I would expect the myaction would be run when the machine consumes <br />the first chunk and waiting for the rest of the data to complete the <br />matching.<br /><br />Regards,<br />Ming<br /><br />All the information contained in this e-mail and its attachments is confidential.<br />Please consider the environment before printing this e-mail<br /><br /><br />_______________________________________________<br />ragel-users mailing list<br /><a href="mailto:ragel-users@complang.org">ragel-users@complang.org</a><br /><a href="http://www.complang.org/mailman/listinfo/ragel-users">http://www.complang.org/mailman/listinfo/ragel-users</a></p></blockquote><div>-- <br />Peter A. Kerzum</div>