ABSTRACT

This chapter explores a simple programming language with extremely regular syntax is used as an example environment in which to explore the possibilities of syntactic analysis, and the debugging systems described have been implemented. Simple syntactic errors are those errors which occur at the level of a typing- mistake. Any error found at the higher syntactic level is recorded at the moment of its discovery in an error frame, a standardised data structure having slots for various items of information concerning any error. The error frame recording any error found at the syntactic or cliche level is simply a data-structure with named slots. Analysis of program code, according to the syntax of the programming language used, can be more powerful as a debugging aid than is sometimes supposed. In the kind of programs written by users of SOLO, it is very often the case that one line of code corresponds directly to one step in the written algorithm.