[ragel-users] Scanner question

Jose Quinteiro jose at ordinate.com
Sat Dec 6 00:42:52 UTC 2008

I'm trying to write a scanner that accepts "num", "numb", "numbe", etc. 
as the same token.  The only way I can think of that accomplishes this is:

main := |*
		/num/i => number;
		/numb/i => number;
		/numbe/i => number;
		/number/i => number;

Is there a better way?


More information about the ragel-users mailing list