emilaxelsson / syntactic

Generic representation and manipulation of abstract syntax
BSD 3-Clause "New" or "Revised" License
25 stars 13 forks source link

Only consider subexpressions of the starting expression for CSE. #3

Closed pjonsson closed 10 years ago

pjonsson commented 10 years ago

The current CSE will consider the input expression itself before traversing into subexpressions. The reason the CSE does not loop is because the heuristic will prevent CSE since there is only one expression according to the counter (the expression itself).