[ragel-users] Error: "lower end of range is greater then upper end"
Adrian Thurston
thurston at complang.org
Sat Nov 21 18:03:10 UTC 2009
Oh, you're using the ruby code generator. Unsigned char is not supported
in the ruby code generator. Sorry, I assumed C.
-Adrian
Iñaki Baz Castillo wrote:
> 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
>
>
>
>
More information about the ragel-users
mailing list