Automatic syntax checking