Hello folks!<div><br></div><div> 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:</div><div><br></div><div>
Input cpp file contained:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace"> . . .</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> %%{</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> write data;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> write init;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> write exec;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> }%%</font></div><div><font class="Apple-style-span" face="'courier new', monospace">. . .</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> DBG_ERROR(("ConfigReader::readConfig: error opening config file '%s'!", configFile.getBuffer() )); </font></div>
<div><br></div><div>DBG_ERROR is my debug macro.</div><div><br></div><div>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.</div>
<div><br></div><div>When I changed <font class="Apple-style-span" face="'courier new', monospace">'%s'</font> to <font class="Apple-style-span" face="'courier new', monospace">%s</font> (without quotes) problem has gone! Seems '%s' substring makes ragel crazy. =)</div>
<div><br></div><div>Someone faced with something like this?</div><div><br><div><div><i>With kindest regards,</i></div><div><i>Alexander</i></div></div><br>
</div>