[ragel-users] Bug or feature?

Adrian Thurston thurston at complang.org
Thu Aug 19 15:41:14 UTC 2010


Hi Alexander,

I can't reproduce the problem using these instructions. Can you send me 
the exact input file that causes the problem? I will treat it as 
confidential.

-Adrian

On 10-08-19 08:12 AM, Alexander Shashkevych wrote:
> Hello folks!
>
>    I'm using ragel to parse my project configs and faced with strange
> ragel behavior. Seems I've found a bug, but I'm not sure. So, use case
> was following:
>
> Input cpp file contained:
>
>   . . .
>     %%{
>     write data;
>     write init;
>     write exec;
>     }%%
> . . .
>     DBG_ERROR(("ConfigReader::readConfig: error opening config file
> '%s'!", configFile.getBuffer() ));
>
> DBG_ERROR is my debug macro.
>
> After compiling this file using ragel I've found that block %%{ . . .
> }%% wasn't processed by ragel and was leaved as is in destination cpp file.
>
> When I changed '%s' to %s (without quotes) problem has gone! Seems '%s'
> substring makes ragel crazy. =)
>
> Someone faced with something like this?
>
> /With kindest regards,/
> /Alexander/
>
>
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users

_______________________________________________
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