Skip to content
Snippets Groups Projects
Commit c747c7dd authored by Lomig Mégard's avatar Lomig Mégard
Browse files

Fixed postTraversal in TreeOps.

parent 27fc635d
Branches
Tags
No related merge requests found
...@@ -93,7 +93,7 @@ object TreeOps { ...@@ -93,7 +93,7 @@ object TreeOps {
* f(a), f(b), f(c), f(Minus(b, c)), f(Add(a, Minus(b, c))) * f(a), f(b), f(c), f(Minus(b, c)), f(Add(a, Minus(b, c)))
*/ */
def postTraversal(f: Expr => Unit)(e: Expr): Unit = { def postTraversal(f: Expr => Unit)(e: Expr): Unit = {
val rec = preTraversal(f) _ val rec = postTraversal(f) _
e match { e match {
case t: Terminal => case t: Terminal =>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment