Skip to content

Instantly share code, notes, and snippets.

Created Aug 10, 2017

What would you like to do?
the description for this gist
// builds a 10 + (((0 + 1)+1)+1) expression
def buildIncrementExpression() = new ScalaToLanguageBridge[Int] {
override def apply[Wrapper[_]](implicit L: Language[Wrapper]): Wrapper[Int] = {
L.add(L.number(10), L.increment(L.increment(L.increment(L.number(0)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.