Difference between revisions of "Standard Pascal"

From Free Pascal wiki
Jump to navigationJump to search
(adding fpc support of iso modus.)
Line 16: Line 16:
 
There are the standard types:<p>
 
There are the standard types:<p>
 
[[Integer|integer]] &middot; [[smallint]] &middot;  [[longint]] &middot;  [[Real|real]] &middot;  [[Boolean|boolean]] &middot;  [[String|string]] &middot;  [[Char|char]] &middot; [[Byte|byte]]
 
[[Integer|integer]] &middot; [[smallint]] &middot;  [[longint]] &middot;  [[Real|real]] &middot;  [[Boolean|boolean]] &middot;  [[String|string]] &middot;  [[Char|char]] &middot; [[Byte|byte]]
 +
 +
== FreePascal support ==
 +
FreePascal supports ISO 7185 Standard Pascal with the mode switch -Miso and ISO/IEC 10206 Extended Pascal with -Mextendedpascal. Support of ISO 7185 started with version 3.0.0.
  
 
== External links ==
 
== External links ==
Line 21: Line 24:
 
* [http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=13802 ISO 7185:1990], official normative version of the Pascal standard.
 
* [http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=13802 ISO 7185:1990], official normative version of the Pascal standard.
 
* [http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=18237 ISO/IEC 10206:1991]: Extended Pascal standard
 
* [http://www.iso.org/iso/home/store/catalogue_tc/catalogue_detail.htm?csnumber=18237 ISO/IEC 10206:1991]: Extended Pascal standard
 
  
 
[[category:Pascal]]
 
[[category:Pascal]]

Revision as of 20:51, 5 February 2016

العربية (ar) Deutsch (de) English (en) español (es) suomi (fi) français (fr) Bahasa Indonesia (id) 日本語 (ja) português (pt) русский (ru) 中文(中国大陆)‎ (zh_CN)

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 · do · type · var

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.

Types

There are the standard types:

integer · smallint · longint · real · boolean · string · char · byte

FreePascal support

FreePascal supports ISO 7185 Standard Pascal with the mode switch -Miso and ISO/IEC 10206 Extended Pascal with -Mextendedpascal. Support of ISO 7185 started with version 3.0.0.

External links