Standard Pascal/ja
Bahasa Indonesia · Deutsch · English · Español · Français · Português · Suomi · Русский · العربية · 中文(中国) · 日本語
標準Pascalとは、Pascal翻訳系がPascal言語に対応するための最小限の仕様です。 国際標準化機構がISO/IEC 7185:1990 “Information technology – Programming languages – Pascal”を発行しています。 その技術的内容を変更しない邦訳が,JIS X 3008「プログラム言語Pascal」として発行されています。
概要
標準翻訳系では、以下の予約語に対応します。:
begin · end · for · goto · if · label · repeat · then · until · while · do · type · var
以下の演算子も、仕様の一部です。:
:= (代入) · = (等しい) · > (より大きい) · < (より小さい) · <> (等しくない)
また、以下の予約語も追加しています。これらは標準Pascalの一部でありませんが、FPCでは、オブジェクトの実装や、C++から発展した例外処理との互換性、また、Borland Pascalや初期のPascal翻訳系との互換性のために使用します。:
implementation · finally · try · unit
型
標準Pascalでは以下の型が定義されています。
- 単純型
- 整数型
integer - 実数型
real - 論理型
Boolean - 文字型
char
- 整数型
- 列挙型
- 構造型
- 配列型
array - レコード型
record - 集合型
set - ファイル型
file
- 配列型
- ポインタ型
演算子
標準Pascalでは以下の演算子が定義されています。
算術演算子
単項算術演算
<thead>
</thead> <tbody>
</tbody>
二項算術演算子
<thead>
</thead> <tbody>
</tbody>
Free Pascalが対応している方式
Free PascalはISO 7185標準Pascalに対応しており,翻訳方式コマンド列オプション-Misoまたはソースコード翻訳系指令{$mode ISO}を用います。ISO 7815対応は3.0.0版より始まりました。将来の版において,ISO/IEC 10206拡張Pascal方式へ対応することが検討されています。
外部リンク
- ISO 7185:1990 - Information technology -- Programming languages -- Pascal - 標準Pascal規格書の取扱頁です(国際標準化機構)。
- ISO/IEC 10206:1991 - Information technology -- Progamming languages -- Extended Pascal - 拡張Pascal規格書の取扱頁です(国際標準化機構)。
- JIS X 3008:1994 プログラム言語Pascal - 標準Pascal規格書の取扱頁です(日本規格協会)。
- ANSI-ISO PASCAL - ISO 7185標準Pascalを中心に算譜や算法の解説・紹介しています。
From the Free Pascal wiki, page "Standard Pascal/ja", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.