Developing parsing rules, preparser and error-control