Skip to content

Instantly share code, notes, and snippets.

View femtomc's full-sized avatar
:shipit:
This is the way.

McCoy R. Becker femtomc

:shipit:
This is the way.
View GitHub Profile
@TiarkRompf
TiarkRompf / CollapsingTowers.scala
Last active July 30, 2022 21:19
compilation by interpreting* staged interpreters
/* collapsing multiple levels of interpreters */
object TestMeta3 {
abstract class Exp
case class Lit(n:Int) extends Exp
case class Sym(s:String) extends Exp
case class Var(n:Int) extends Exp
case class App(e1:Exp, e2:Exp) extends Exp
case class Lam(e:Exp) extends Exp