[ragel-users] Re: Problem: Change state only when a new input is received

Adrian Thurston thurs... at cs.queensu.ca
Fri Jul 13 21:32:40 UTC 2007


The trigger action should get executed when the machine moves over the 6
value. If it isn't then something else must be wrong.


Aditi wrote:
> @2.) Here is a snippet of ragel code->
> <snip>
> 	action trigger {
> 		printf("Regex Matched!\n");
> 	}
> 	main := any* (2 4 6) @trigger;
> </snip>
> I am using very simple regex and actions to see if it works. Both of
> these are actually going to be user specified and hence more complex.
> So, why am I getting a delay of one token? Even the test printf
> statement which is printing the tokens is executed only after I send
> the next token! :(

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20070713/686c6fa6/attachment-0001.sig>

More information about the ragel-users mailing list