[ragel-users] Re: Reproducable crash

Adrian Thurston thurs... at cs.queensu.ca
Wed Jan 24 01:27:17 UTC 2007

I can't seem to reproduce the crash. I think it might be architecture 
dependent. Are you running on a Mac? Bus errors in Ragel seem to crop up 
only on Macs.

crasher = any*;
tag = "{" cmd* crasher "}";

This is heavily ambiguous. The any* will never end. Also the any* of the 
text machine will never end. What happens when you change it to 
something unambiguous?

crasher = [^}]*;
text = [^\\{]*;


Alexander Strange wrote:
> On Jan 23, 7:00 pm, Adrian Thurston <thurs... at cs.queensu.ca> wrote:
>> Hi Alex, it appears that the attachment didn't make it. Could you resend?
> Oh, sorry, I forgot to add it.
> Actually, it doesn't look like the Google post field lets you attach
> files, so here's a URL:
> http://astrange.ithinksw.net/tools/SSATagParsing.m.rl
>> Also, since it would be wasteful to automatically save pointers for every
>> named machine, the machines for which pointers are saved would need to be
>> explicitly declared. They can't be extracted from the host language because
>> the host language is not parsed. I think doing >{ptr = p;} is not much more
>> typing than a declaration :)
> I see your point; the manual method certainly works for me now.
>> Regards,
>>  Adrian

More information about the ragel-users mailing list