[ragel-users] How to convert [#x2070-#x218F] to Ragel grammar?

Iñaki Baz Castillo ibc at aliax.net
Fri Nov 20 19:20:10 UTC 2009

El Viernes, 20 de Noviembre de 2009, Iñaki Baz Castillo escribió:
> El Viernes, 20 de Noviembre de 2009, Григорий Фучеджи escribió:
> > I think this would work
> > (0x20 0x70..0xFF) | (0x21 0x00..0x8F)
> > But I think there should be better solution
> ok, I'll try it.
> Thanks.

Unfortunatelly I don't understand how to convert the following range:


Could I convert it to?:


so then to Ragel grammar as?:

   (0x00 0xF8..0xFF) | (0x01 0x00..0xFF ) | (0x02 0x00..0xFF )

It seems too complex however... what about converting to binary?

PS: But what is #x2FF? is it "0x2F 0xF0"? or "0x02 0xFF"?


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

More information about the ragel-users mailing list