Slide 20
Slide 20 text
Virtualizing Expressions
• the set of rules is extended, now including elements of
expressions (literals, variables, this, method invocation, new,
lambdas, etc)
• e.g., for (Integer x: y) println(x + 1); // HOAS
a.For(a.Var("y", y),
Integer x " a.Exp(
a.Invoke(a.This(this), "println",
a.Add(a.Var("x", x), a.Lit(1)))));
20
powered by: