A table-driven parser for the TICK system
The purpose of this study was to develop a table-driven parser for the TICK system which would facilitate language implementation as well as providing excellent student-oriented features. The problems considered fell in two general areas: (1) the difficulties and inconveniences encountered by language implementors as they design and develop new language compilers, and (2) the limitations and frustrations experienced by students due to the unavailability of an interactive compiler.
As a solution, the transition diagram method of parsing was decided upon. Specifically, the parser used in the CAPS system from the University of Illinois provided the basic model. This approach allows the language designer to input the language specifications in a program format rather than a tabular format, as many other models require. Not only is this easier for the language implementor, but it also saves space as well. This method of language implementation also automatically provides information to the error analysis system directly from the language specifications indicated above. The TICK system also enables a student who uses the system to obtain clear, readable, and understandable error messages immediately, as soon as the line which includes the error is keyed in. In addition to a description of the problem that generated the error, most of the time the system will also be able to suggest to the student possible ways to correct the error.
The TICK system is effective in performing the above mentioned functions. This system provides a relatively easy form for language implementors to write, debug, and maintain language specifications. It also provides a truly interactive compiler (not just a batch compiler running on an on-line system), which includes an unusually useful error diagnostic system. These features are directly related to the parsing method used.
There are problems that exist at this time, though. Most of the problems are related to the speed of the TICK system. With some minor reprogramming and reworking of the TICK system, it is possible that these remaining problems can be solved making TICK an outstanding system.
Thesis77.W534.pdf
3.58 MB
Adobe PDF
cd6ec6fe4eb33e62ce7c8bb2f85b0a45