import treehugger.forest._import definitions._import treehuggerDSL._scala> val tree = REF("t") MAP BLOCK(| CASE(TUPLE(ID("k"), ID("v"))) ==> (REF("k") ANY_-> (OptionClass APPLY REF("v")))| )tree: treehugger.forest.Tree = Infix(Ident(t),map,List(Block(List(),CaseDef(Apply(Ident(Tuple2),List(Ident(k), Ident(v))),EmptyTree,Infix(Ident(k),->,List(Apply(Ident(Option),List(Ident(v)))))))))scala> treeToString(tree)res0: String =t map {case (k, v) => k -> Option(v)}
--
You received this message because you are subscribed to the Google Groups "treehugger-scala" group.
To unsubscribe from this group and stop receiving emails from it, send an email to treehugger-sca...@googlegroups.com.
To post to this group, send email to treehugg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/treehugger-scala/ef047254-233b-4772-be6e-47131eeacdac%40googlegroups.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.