On 04/07/2011 11:22 PM, Adrian Thurston wrote:

Yes, I understand. I do it exactly with fret/fcall. Here some working sample:
https://github.com/vladimir-vg/alonzo_prototype/blob/master/parser/parser.rl

> ragel might not be the right tool for the job.

Can you list some right tools for programming languages parsing?

To expand on this a bit ... it is entirely up to the user to manage the stack allocation. Ragel's support for recursive structures (fcall/fret) is an extension to the basic model, which is pure state machine (not a PDA). If you find you have a lot recursion in what you need to parse, you should consider that ragel might not be the right tool for the job.

Regards



_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to