parsing define and declare commands