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

Iñaki Baz Castillo ibc at aliax.net
Sat Nov 21 17:47:48 UTC 2009

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


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

More information about the ragel-users mailing list