Solve directive recursion.