[ragel-users] Actions executing too often.

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


Hi,
	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:
	http://imgur.com/POP8U.png

What Ragel compiles is this:
	http://imgur.com/x36VA.png

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

Much thanks,
Rich.




More information about the ragel-users mailing list