dynamically resizable fcall/fret stack

Adrian Thurston thurs... at cs.queensu.ca
Sat Sep 15 19:55:44 UTC 2007


Hi,

I just implemented the prepush and postpop ragel statements. These allow
you to supply stack management code that is written out during the
generation of fcall and fret. Prepush is executed immediately before
pushing the current state to the state stack on a call. Postpop is
executed imediately after popping the current state on a return. These
can be used to implement a dynamically resizable stack. Test cases are
in test/recdescent?.rl.

The recdescent1.rl test case is attached.

Cheers,
 Adrian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: recdescent1.rl
URL: <http://www.colm.net/pipermail/ragel/attachments/20070915/cb97a56d/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://www.colm.net/pipermail/ragel/attachments/20070915/cb97a56d/attachment.sig>


More information about the ragel-users mailing list