syntax error check in stasc