home *** CD-ROM | disk | FTP | other *** search
- Program name: A tiny Pascal Compiler Builder
-
- Author name: William A. Barret
-
- Address: QCAD Systems, Inc.
- 1164 Hyde Avenue
- San Jose, CA 95129
-
-
- Telephone Number: 800-538-9787 (408-727-6671 In CA)
-
- Suggested Donation: $10 plus $2 shipping and handling
-
- Program Description:
-
- In this program/article, they explain how to design and implement a
- small subset Pascal compiler, using the Turbo Pascal compiler and a
- couple of other software tools that you can purchase for a nominal
- charge. It is capable of translating a Pascal subset program into 8086
- symbolic assembly language, which can then be assembled into a running
- program on an IBM PC.
-
- When you look at the tiny Pascal, it may strike you as being so
- ridiculously simple that it has no useful applications. However, as it
- is explained, it provides all the important features of a high-level
- programming language, and can be extended indefinitely by writing more
- support functions.
-
- By reading this article, or better, by ordering the support software
- described at the end of this article, you will not only have your own
- extensible compiler going, but will have learned how language
- translators and compilers are organized and written. So... carry on,
- please!
-
-
- Tiny Pascal Features
-
-
- * All four arithmetic operations in full expressions
- -- but on 16-bit integers only.
- * Assignment, IF-THEN-ELSE, BEGIN-END blocks, and WHILE-DO.
- * Functions with parameters
- * READ, WRITE, WRITELN with limited string support
- * Global variables
- * Integer literals
-