[ragel-users] 0x0E..0xFF produces "lower end of range is greater then upper end"

Iñaki Baz Castillo ibc at aliax.net
Mon Oct 21 15:15:19 UTC 2013

Hi, using Ragel 6.7 in C with this simple grammar rule:

  # Any byte except NULL, CR or LF.
  main := ( 0x01..0x09 | 0x0B..0x0C | 0x0E..0xFF )+;

When compiling the grammar it generates the following error:

  1:36: lower end of range is greater then upper en

Column 36 points to the beginning of "0x0E..0xFF". What is wrong with
that? AFAIK 0x0E is *less* than 0xFF, am I wrong?

Thanks a lot.

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

ragel-users mailing list
ragel-users at complang.org

More information about the ragel-users mailing list