switch syntax checker.