[ragel-users] How easy is it to extend Ragel's code generation to other languages?

Adrian Thurston thurston at complang.org
Sat May 16 00:53:19 UTC 2009

It's generally pretty easy to get a basic model working in an imperative 
language. The approach to take depends on the facilities of the target 
language. For example if goto is available then you can copy the C code 
directly. If not, then maybe base it on Java or Ruby.

But since Erlang is functional, it's probably harder (but not 
impossible) to implement the Ragel runtime semantics exactly as it 
exists for the other target languages.

I can't really say since I don't know Erlang. What we need is to find 
the intersection of all Ragel experts with all Erlang experts.


Torben Hoffmann wrote:
> Ragel seems pretty powerful, but it does not target Erlang which I use a 
> lot.
> How easy would it be to add support for Erlang?
> And in particular: would it be possible to generate both protocol 
> analysers as well as Erlang/OTP state machines 
> (http://www.erlang.org/doc/man/gen_fsm.html)?
> The reason for this is that the gen_fsm module in Erlang/OTP is so 
> powerful that you really want to write you code using that.
> Thanks in advance,
> Torben
> ------------------------------------------------------------------------
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users

More information about the ragel-users mailing list