[ragel-users] Actions executing too often.

Richard Osborn richardosborn at mac.com
Tue Dec 8 07:50:19 UTC 2009

	I've just recently started learning Ragel. I have read the guide pdf  
and I can't seem to find a solution to this problem.
Let's say I have this grammar:
		op = '+'+;
		word = alpha+;
		spaces = ' '+;
		base = 	  spaces
				| word >start_word $in_word %end_word
				| op >start_op $in_op %end_op
		main := base+;

What I would like to see is this:

What Ragel compiles is this:

Can anyone help me get the behavior I'm looking?

Much thanks,

More information about the ragel-users mailing list