Bat syntax and principle and its application