Difference between revisions of "Standard Pascal"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 
'''Standard Pascal''' is a specification for the [[Pascal]] language that defines the minimum level that a [[compiler|Pascal compiler]] must support in order to be a true compiler of the Pascal language.  The following are the standard [[keyword]]s that all compilers must support:
 
'''Standard Pascal''' is a specification for the [[Pascal]] language that defines the minimum level that a [[compiler|Pascal compiler]] must support in order to be a true compiler of the Pascal language.  The following are the standard [[keyword]]s that all compilers must support:
  
[[begin]] · [[end]] · [[for]] · [[goto]] · [[if]] · [[label]] ·  [[repeat]] · [[then]] ·  [[until]] · [[while]]  
+
:[[begin]] · [[end]] · [[for]] · [[goto]] · [[if]] · [[label]] ·  [[repeat]] · [[then]] ·  [[until]] · [[while]]  
 +
 
 +
The following symbols are also part of the language:
 +
 
 +
:<nowiki>:=</nowiki> ([[becomes]])  &middot; = ([[equal]])  &middot; > ([[greater than]])  &middot; < ([[less than]]) <> ([[not equal]])
  
 
There are additional keywords which are not technically part of the Standard Pascal language but are used by [[FPC]] either for additional functionality such as for implementing objects, compatibility with the error recovery concepts exposed by C++, or to provide compatibility with [[Borland Pascal]] and earlier Pascal compilers.  These keywords include:
 
There are additional keywords which are not technically part of the Standard Pascal language but are used by [[FPC]] either for additional functionality such as for implementing objects, compatibility with the error recovery concepts exposed by C++, or to provide compatibility with [[Borland Pascal]] and earlier Pascal compilers.  These keywords include:
  
[[implementation]] &middot; [[finally]] &middot; [[try]] &middot;  [[unit]].
+
:[[implementation]] &middot; [[finally]] &middot; [[try]] &middot;  [[unit]].
  
  
 
{{Stub}}
 
{{Stub}}

Revision as of 21:30, 23 October 2005

Standard Pascal is a specification for the Pascal language that defines the minimum level that a Pascal compiler must support in order to be a true compiler of the Pascal language. The following are the standard keywords that all compilers must support:

begin · end · for · goto · if · label · repeat · then · until · while

The following symbols are also part of the language:

:= (becomes) · = (equal) · > (greater than) · < (less than) <> (not equal)

There are additional keywords which are not technically part of the Standard Pascal language but are used by FPC either for additional functionality such as for implementing objects, compatibility with the error recovery concepts exposed by C++, or to provide compatibility with Borland Pascal and earlier Pascal compilers. These keywords include:

implementation · finally · try · unit.


An editor has declared this article to be a stub, meaning that it needs more information. Can you help out and add some? If you have some useful information, you can help the Free Pascal Wiki by clicking on the edit box on the left and expanding this page.