diff --git a/articles/pascal.md b/articles/pascal.md index f47d31e..164b2f8 100644 --- a/articles/pascal.md +++ b/articles/pascal.md @@ -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, 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, -most compilers are for an extended superset of the Pascal described in that standard. +Pascal has two ISO standards: ISO 7185, informally named "Standard Pascal" an ISO 10206, named "Extended Pascal". +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 - [FPC](https://www.freepascal.org/) (Free Pascal Compiler): currently the most popular Pascal compiler with wide support @@ -50,7 +52,7 @@ identifiers. program HelloWorld; begin - WriteLn('Hello, World!'); + writeLn('Hello, World!'); end. ``` @@ -95,6 +97,7 @@ fpc -O3 -S2 fact.pas ## Resources - [Free Pascal Wiki](https://wiki.freepascal.org/Main_Page) - [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 flaws described in the article has been fixed by modern Pascal compilers.