[ragel-users] C #define for numeric literals

Adrian Thurston thurston at complang.org
Sat Jun 25 17:53:51 UTC 2011


The importer doesn't accept HEX, only decimal.

http://www.complang.org/redmine/issues/301

On 11-06-22 06:31 PM, Ted Toth 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.
>
> On Mon, Jun 20, 2011 at 11:19 AM, Ted Toth<txtoth at gmail.com>  wrote:
>> Maybe I don't understand but I tried using values that are defined in
>> a header (.h) file but ragel complained :( I ended up adding the same
>> values to my ragel file. I'd prefer to use the C header values instead
>> of having to replicate them.
>>
>> Ted
>>
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users

-- 
Dr. Adrian D. Thurston
http://www.complang.org/thurston/

_______________________________________________
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