[ragel-users] Error: "lower end of range is greater then upper end"

Iñaki Baz Castillo ibc at aliax.net
Sat Nov 21 18:01:07 UTC 2009


El Sábado, 21 de Noviembre de 2009, Adrian Thurston escribió:
> That doesn't sound right. Can you send a ragel file that causes this?
> Reduce it if contains code you don't want to share.

Any grammar causes it:

---------test.rl-------------
%%{
	
	machine my_grammar;
	alphtype unsigned char;
		
	DIGIT                   = 0x30..0x39;
	ALPHA                   = 0x41..0x5a | 0x61..0x7a;
	mychar                  = DIGIT | ALPHA;

	main                  := mychar;
	write data;
	
}%%
-----------------------------

~# ragel -F0 -R test.rl
test.rl:4:11: "unsigned char" is not a valid alphabet type




-- 
Iñaki Baz Castillo <ibc at aliax.net>




More information about the ragel-users mailing list