This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorials:pascal [2024/06/11 05:43] papa |
tutorials:pascal [2024/06/20 05:10] (current) papa [Hello, World!] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Pascal ====== | + | ====== |
| - | The TWENEX.ORG Pascal compiler was developed | + | The TWENEX.ORG Pascal compiler was originally |
| + | University of Hamburg | ||
| + | later modified and distributed by Rutgers | ||
| + | and updates contributed by CMU, Stanford, USC, Sandia National | ||
| + | Laboratories and other sites. | ||
| - | The compiler can be invoked either with the [[tutorials: | + | The compiler can be invoked either with the [[tutorials: |
| - | Additional information on the LOTS Pascal compiler can be found in '' | + | ===== Hello, World! ===== |
| - | (The following reference documents are for the DEC TOPS-20 PASCAL compiler, which is not installed on TWENEX.ORG, not the LOTS compiler. Although the two compilers differ | + | To create and run a //Hello, World!// program |
| - | ===== References ===== | + | < |
| + | [KANKAN] PUBLIC:< | ||
| + | </ | ||
| - | * // | + | Your default text editor will start. Enter and save the following: |
| - | * //[[http:// | + | |
| + | < | ||
| + | (* Hello program in Pascal *) | ||
| + | |||
| + | program Hello (Output); | ||
| + | begin | ||
| + | writeln (' | ||
| + | end. | ||
| + | </ | ||
| + | |||
| + | Return to EXEC then compile and run the program: | ||
| + | |||
| + | < | ||
| + | [KANKAN] PUBLIC:< | ||
| + | PASCAL: | ||
| + | LINK: | ||
| + | [LNKXCT HELLO execution] | ||
| + | OUTPUT | ||
| + | Hello, World! | ||
| + | [KANKAN] PUBLIC:< | ||
| + | </ | ||
| + | |||
| + | * Syntax of the EXECUTE command is '' | ||
| + | * At the '' | ||
| + | |||
| + | ===== Additional Information ===== | ||
| + | |||
| + | Additional information on the Pascal compiler can be found in '' | ||
| + | * PASCAL.DOC | ||
| + | * PASCAL.HACKER | ||
| + | * PASCAL.INCOMPATIBILITIES-DOC | ||
| + | * PASCAL.MEM | ||
| + | * PASCAL.UPDATE | ||
| + | * PASCAL.USER | ||
| + | |||
| + | The following is a reference on the ISO Pascal language standard: | ||
| + | |||
| + | * K. Jensen and N. Wirth, // | ||