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

Adrian Thurston thurston at complang.org
Sat Nov 21 17:52:26 UTC 2009


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.

-Adrian

Iñaki Baz Castillo wrote:
> El Sábado, 21 de Noviembre de 2009, Iñaki Baz Castillo escribió:
>> El Sábado, 21 de Noviembre de 2009, Adrian Thurston escribió:
>>> That's because you're working with a signed char alphabet. The literal
>>> value 0xff is interpreted as -1.
>> Ok, thanks!
> 
> According to the doc alphtype can be (for C):
> 
>   char   unsigned char
>   short  unsigned short
>   int    unsigned int
>   long   unsigned long
> 
> However I set:
> 
>   %%{
>     machine my_grammar;
>     alphtype unsigned char;
> 
> and get:
> 
>   "unsigned char" is not a valid alphabet type
> 
> ¿?
> 
> 
> 




More information about the ragel-users mailing list