A rusty iron gate swinging dismally on its hinges! 
( ( ( A ( rusty ( iron gate ) ) ) ( ( swinging dismally ) ( on ( its hinges ) ) ) ) ! )
(ROOT (NP (NP (DT A) (JJ rusty) (NN iron) (NN gate)) (VP (VBG swinging) (ADVP (RB dismally)) (PP (IN on) (NP (PRP$ its) (NNS hinges)))) (. !)))
The iron gate was swinging and could not be locked.  
( ( The ( iron gate ) ) ( ( ( ( was swinging ) and ) ( ( could not ) ( be locked ) ) ) . ) )
(ROOT (S (NP (DT The) (NN iron) (NN gate)) (VP (VP (VBD was) (VP (VBG swinging))) (CC and) (VP (MD could) (RB not) (VP (VB be) (VP (VBN locked))))) (. .)))