<p>Hi Kevin,</p>
<p>Sorry, I was not clear: I want to create a backend for Ragel to produce crack code, like it does for Ruby, C/C++ etc.</p>
<p>I think the Ruby backend looks like a good base to start from. </p>
<p>Thanks,<br>
Conrad<br>
</p>
<div class="gmail_quote">On Nov 11, 2011 10:04 AM, "Kevin T. Ryan" <<a href="mailto:kevin.t.ryan@gmail.com">kevin.t.ryan@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Nov 10, 2011 at 10:57 AM, Conrad Steenberg<br>
<<a href="mailto:conrad.steenberg@gmail.com">conrad.steenberg@gmail.com</a>> wrote:<br>
> Hi there,<br>
><br>
> I'm looking into creating a ragel back-end for the Crack language ...<br>
><br>
> Is there an existing language back-end that would be most<br>
> appropriate to use as a template?<br>
<br>
Have you looked at the examples included as part of the distribution?<br>
On my machine, they can be found in "C:\Program Files\Ragel<br>
6.7\ragel-6.7\examples". Probably most relevant to crack (from your<br>
description) is the clang.rl file ("A mini C-like language scanner.")<br>
or perhaps the cppscan.rl file ("A C++ scanner. Uses the longest match<br>
construction."). I found many of the examples very enlightening on<br>
how to use Ragel / get started. Hope that helps!<br>
<br>
ktr<br>
</blockquote></div>