This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
tutorials:pascal [2021/11/03 02:00] papa created |
tutorials:pascal [2024/06/20 05:10] (current) papa [Hello, World!] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | The TOPS-20 PASCAL | + | The TWENEX.ORG Pascal |
| + | University of Hamburg as " | ||
| + | later modified and distributed by Rutgers University with fixes | ||
| + | and updates contributed by CMU, Stanford, USC, Sandia National | ||
| + | Laboratories and other sites. | ||
| - | ===== References ===== | + | The compiler can be invoked either with the [[tutorials: |
| - | * // | + | ===== Hello, World! ===== |
| - | * // | + | |
| + | To create and run a //Hello, World!// program in Pascal: | ||
| + | |||
| + | < | ||
| + | [KANKAN] PUBLIC:< | ||
| + | </ | ||
| + | |||
| + | Your default text editor will start. Enter and save the following: | ||
| + | |||
| + | < | ||
| + | (* 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, // | ||