摘要 |
PURPOSE:To make an error check when a source program is inputted, by making a line-by-line syntax analysis of the source program, and converting the source program to an intermediate code format for conversion to machine language. CONSTITUTION:A translator TL1 makes the error check after the line-by-line syntax interpretation of the input source program SPG; if an error is found, an error message is outputted when there is no error, the program is converted into intermediate codes, which are passed to an editor 2. The editor 2 checks the line number of the intermediate codes and inserts them at corresponding positions of an intermediate code buffer 3. After the SPG is all inputted, a compiler 4 receives all the codes in the buffer 3 under the control of a CPU6 and converts them into specific machine language successively. A reversed TL5 receives desired codes from the buffer 3 when program display is necessary and reconverts them into the SPG. The editor 2 corrects corresponding lines of the intermediate code buffer 3 during program corrections. |