[ragel-users] C #define for numeric literals

Alan West alan at alanz.com
Fri Jun 24 22:44:52 UTC 2011


On 23 Jun 2011, at 02:31, Ted Toth <txtoth at gmail.com> wrote:

> I did try to use 'import' on my C header but parser didn't work.
> #define FOO 0x42 in the header file didn't work but FOO = 0x42; in my
> ragel file does work.

I believe you'd need to feed the Ragel file through your C preprocessor, to have the identifier names replaced with their values before feeding it to Ragel.
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users



More information about the ragel-users mailing list