parsing typeDecl, varDecl