On Jul 27, 2004, at 7:18 AM, Dan Nuffer wrote:
> Jan-Henrik Haukeland wrote:
>> It would help if re2c instead generated e.g.
>> if(yych <= 0241) ..
>> so it was possible to use values upto \377. What do you think?
> I think this will work. I've committed the fix to CVS.
Thanks for adding this, it looks great, except it generate a trailing
':' for \n (ascii char 10) which is an error. I.e it generate stuff
if(yych <= 0xA:) goto yy45;
while it should generate
if(yych <= 0xA) goto yy45;
For other chars, (at least with my regular expressions) it generate
correctly expressions such as
if(yych <= 0x1F) goto yy45;
Mobil +47 97141255