// This produces a stream from "Hello world". #include #include "pushy.h" typedef struct {unode un; char *a;} hllo; static void rptr(unode* n){ char a = *(((hllo*)n)->a++); if(a) (n->dn->code)(a, n->dn, n); else {free(n); exit(0);} } unode* chllo(dnode* n, char* a){ hllo* r = (hllo*)malloc(sizeof(hllo)); *r = (hllo){(unode){rptr, n}, a}; return &r->un;}