dom at goodforbusiness.co.uk
Mon Oct 11 19:14:44 UTC 2010
I haven't but I will do. Thank you.
I'm not sure if the RubyCodeGen::writeInit function is incorrect but
it's quite divergent from the CDCodeGen version. The only problem I had
doing the work, besides a few missed semicolons, was that the write init
directive was trying to initialise pe to the data length. In my testing
script the initialisation and execution stages are in separate functions
I assumed I had misunderstood something about the options that can be
given to write init and write exec but after that turned up a blank I
looked at CDCodeGen. I was surprised to find that it didn't include
similar code relating to the end directive. I made my writeInit function
more like CDCodeGen and my problem was resolved.
The code in question:
The difference might be related to the concessions you mention, I didn't
look into it too much.
Thanks for Ragel, it's a great piece of software!
On 11/10/2010 19:54, Adrian Thurston wrote:
> Great, thanks for working on this!
> Did you have a look at the java code generator? There were a few
> concessions that had to be made in the Ruby code generator that might
> not need to be made in JS.
> On 10-10-11 04:07 AM, Dominic Marks wrote:
>> Hi all,
>> I've got the table code generation strategy working. I'm going to work
>> on building a set of RL files for testing purposes and then have a crack
>> like to help with any part of this process, I'd be most grateful.
>> I've forked Ragel trunk into a github repo while I work on this. There
>> is a sample script (I translated the maillbox.rl file from the Ragel
>> distribution) which you can play with if you install Node.js (a
>> while the sample script uses Node.js for IO, but the code generated is
>> browser soon too.
>> A diff against Ragel trunk is here:
>> The code is mostly a cut-paste-and-replace from Ruby at the moment. I'll
>> be tidying it up over the next few weeks, as my time allows. However, it
>> does at least run one Ragel state machine correctly already.
>> <http://goodforbusiness.co.uk/%7Edom/mailbox.js> (Requires Node.js).
>> ragel-users mailing list
>> ragel-users at complang.org
> ragel-users mailing list
> ragel-users at complang.org
ragel-users mailing list
ragel-users at complang.org
More information about the ragel-users