articles/pascal.md: update

This commit is contained in:
tocariimaa 2025-02-17 12:01:28 -03:00
parent 75b7822721
commit 3b8fbf5959

View file

@ -8,8 +8,10 @@ losing its dominance to C, mainly because of the influence of [OSes](os.md) of t
In its "vanilla" form, Pascal is not any more complex than C, aside from having features that C doesn't have, In its "vanilla" form, Pascal is not any more complex than C, aside from having features that C doesn't have,
such as range types, nested procedures, sets, builtin tagged unions, etc. such as range types, nested procedures, sets, builtin tagged unions, etc.
Pascal has an ISO standard: ISO 7185. Since the Pascal described in said standard is quite useless for practical programming, Pascal has two ISO standards: ISO 7185, informally named "Standard Pascal" an ISO 10206, named "Extended Pascal".
most compilers are for an extended superset of the Pascal described in that standard. Because the Pascal described in the ISO 7185 standard is quite useless for practical programming,
most compilers are for an extended superset of the Pascal described in that standard. A more useful Pascal is
described on the "Extended Pascal" standard, but by the time it came out it was quite late.
## Compilers ## Compilers
- [FPC](https://www.freepascal.org/) (Free Pascal Compiler): currently the most popular Pascal compiler with wide support - [FPC](https://www.freepascal.org/) (Free Pascal Compiler): currently the most popular Pascal compiler with wide support
@ -50,7 +52,7 @@ identifiers.
program HelloWorld; program HelloWorld;
begin begin
WriteLn('Hello, World!'); writeLn('Hello, World!');
end. end.
``` ```
@ -95,6 +97,7 @@ fpc -O3 -S2 fact.pas
## Resources ## Resources
- [Free Pascal Wiki](https://wiki.freepascal.org/Main_Page) - [Free Pascal Wiki](https://wiki.freepascal.org/Main_Page)
- [Basic Pascal Tutorial](https://wiki.freepascal.org/Basic_Pascal_Tutorial) - [Basic Pascal Tutorial](https://wiki.freepascal.org/Basic_Pascal_Tutorial)
- [Extended Pascal](https://wiki.freepascal.org/Extended_Pascal) article on the Free Pascal Wiki.
- *Why Pascal is Not My Favorite Programming Language* by Brian Kernighan, mostly of historic interest as almost all of the - *Why Pascal is Not My Favorite Programming Language* by Brian Kernighan, mostly of historic interest as almost all of the
flaws described in the article has been fixed by modern Pascal compilers. <https://www.lysator.liu.se/c/bwk-on-pascal.html> flaws described in the article has been fixed by modern Pascal compilers. <https://www.lysator.liu.se/c/bwk-on-pascal.html>