PMS—A program to make learning Pascal easier
暂无分享,去创建一个
Abstract One of the essential tasks in the teaching of a programming language is the introduction of the main constructs of the language—the syntax and semantics of statements, control, procedures, file handling, and so on. Most teachers present this topic by simulating the operation of the computer on the chalkboard by manual tracing of the execution of sample demonstration programs. Upon closer inspection it becomes clear that this task could be performed by the computer itself. A program implementing this idea would help the teacher in the class and the student (who could use the computer to repeat the instructor's performance at any time and on any problem of his choice) both in the class and in study. This article describes a collection of programs called PMS that performs exactly this function for the teaching of Pascal. PMS is organized as a collection of “mimlanguages” each of which demonstrates, and allows the user to experiment with, a certain category of Pascal features using a particular screen representation. Each of the subsystems contains a syntax-driven, screen-oriented translator associated with an interpreter that controls execution and the appropriate screen representation. This modular structure of PMS reflects the fact that programming is always taught by presenting certain essentially disjoint language features individually. In addition to their logical independence, these disjoint concepts also require different graphical approaches for their visual representation and this reinforces the need for modularization of the package. PMS is written in Pascal and runs on several computers including the IBM PC.