check the syntax of the input file