They greeted her and she smiled shyly back.
( They ( ( greeted ( ( ( her and ) she ) ( ( smiled shyly ) back ) ) ) . ) )
(ROOT (S (NP (PRP They)) (VP (VBD greeted) (SBAR (S (NP (PRP her) (CC and) (PRP she)) (VP (VBD smiled) (ADVP (RB shyly)) (ADVP (RB back)))))) (. .)))
They said "Hello!" when they saw her.
( They ( ( ( said ( `` ( ( Hello ! ) '' ) ) ) ( when ( they ( saw her ) ) ) ) . ) )
(ROOT (S (NP (PRP They)) (VP (VBD said) (INTJ (`` ``) (UH Hello) (. !) ('' ''))) (SBAR (WHADVP (WRB when)) (S (NP (PRP they)) (VP (VBD saw) (NP (PRP her))))) (. .)))