finish syntax checking.