ast tree -> cmd list