Skip to content

Instantly share code, notes, and snippets.

@pnwamk
Created February 1, 2015 03:55
Show Gist options
  • Save pnwamk/c16cd323858dc3606460 to your computer and use it in GitHub Desktop.
Save pnwamk/c16cd323858dc3606460 to your computer and use it in GitHub Desktop.
(match tail
...
[(if ,p ,tT ,fT)
(cps
[tTail* tE <- (Tail tTail) (: Tail/c Env/c)]
[fTail* fE <- (Tail fTail) (: Tail/c Env/c)]
[then
(let*-values ([(l+ tE*) (label-block tTail* 'T #f)]
[(l- fE*) (label-block fTail* 'F #f)]
[(tail* Ep)])
(cps
[pTail pE <- (Pred p l+ l-) (: Tail/c Env/c)]
[then (k pTail (append tE fE tE* fE* pE))]))])]
...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment