parrotcode: Test the Parrot::Coroutine class | |
Contents | Tests |
t/library/coroutine.t -- Test the Parrot::Coroutine class
./parrot t/library/coroutine.t
This script tests the Parrot::Coroutine
class using an implementation of the "same fringe" problem.
Note: In order to see how coroutine calling works in detail, insert trace 4
before and trace 0
after one of the same_fringe
calls in the body of the main program.
http://swiss.csail.mit.edu/classes/symbolic/spring06/psets/ps6/samefringe.scm -- a collection of "same fringe" implementations in Scheme.
|