Difference between revisions of "Standard Pascal/ja"

From Free Pascal wiki
Jump to navigationJump to search
m (外部リンク邦訳・宛先修正)
(JIS X 3008:1994に準拠した型定義)
Line 13: Line 13:
 
:[[Implementation|implementation]] · [[Finally|finally]] · [[Try|try]] ·  [[Unit|unit]].
 
:[[Implementation|implementation]] · [[Finally|finally]] · [[Try|try]] ·  [[Unit|unit]].
  
== データ型 ==
+
== ==
標準のデータ型は以下のとおりです。:<p>
+
標準Pascalでは以下の型が定義されています。
[[Integer|integer]] &middot; [[smallint]] &middot;  [[longint]] &middot;  [[Real|real]] &middot;  [[Boolean|boolean]] &middot;  [[String|string]] &middot;  [[Char|char]] &middot; [[Byte|byte]]
+
 
 +
* 単純型
 +
** 整数型<code>integer</code>
 +
** 実数型<code>real</code>
 +
** 論理型<code>Boolean</code>
 +
** 文字型<code>char</code>
 +
 
 +
** 列挙型
 +
 
 +
* 構造型
 +
** 配列型<code>array</code>
 +
** レコード型<code>record</code>
 +
** 集合型<code>set</code>
 +
** ファイル型<code>file</code>
 +
 
 +
* ポインタ型
 +
 
 +
== 演算子 ==
 +
標準Pascalでは以下の演算子が定義されています。
 +
 
 +
<!--TODO-->
  
 
== Free Pascal がサポートするモード ==
 
== Free Pascal がサポートするモード ==
Line 21: Line 41:
  
 
== 外部リンク ==
 
== 外部リンク ==
* [http://www.standardpascal.org ANSI-ISO PASCAL] - ISO 7185標準Pascalを中心に算譜や算法の解説・紹介。
+
* [http://www.standardpascal.org ANSI-ISO PASCAL] - ISO 7185標準Pascalを中心に算譜や算法の解説・紹介しています。
* [https://www.iso.org/standard/13802.html ISO 7185:1990 - Information technology -- Programming languages -- Pascal] - 標準Pascal規格書の取扱頁(国際標準化機構公式)
+
* [https://www.iso.org/standard/13802.html ISO 7185:1990 - Information technology -- Programming languages -- Pascal] - 標準Pascal規格書の取扱頁です(国際標準化機構公式)。
* [https://www.iso.org/standard/18237.html ISO/IEC 10206:1991 - Information technology -- Progamming languages -- Extended Pascal] - 拡張Pascal規格書の取扱頁(国際標準化機構公式)
+
* [https://www.iso.org/standard/18237.html ISO/IEC 10206:1991 - Information technology -- Progamming languages -- Extended Pascal] - 拡張Pascal規格書の取扱頁です(国際標準化機構公式)。

Revision as of 15:56, 28 June 2019

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

標準Pascalとは、Pascal コンパイラ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では以下の演算子が定義されています。


Free Pascal がサポートするモード

Free Pascal は、-Miso のモードスイッチで ISO 7185 標準パスカル に、-Mextendedpascal で ISO/IEC 10206 拡張パスカル に対応します。. version 3.0.0. 以降では、ISO 7185 への対応も始まりました。

外部リンク