various program constructs: 様々なプログラム構文
上智大学 伊藤 潔
2007年9月16日
様々なprogram
construct 「プログラム構文,プログラム構成要素」について述べます.
constructは,「ある規則に従って構造をもっている,構成体,構成要素,構成概念,構造物,構文」です.
C言語ならそのsyntax
「構文規則,構文法」に従ってプログラムを書きます.そのsyntaxに従わないで,プログラムを書いたら,それは,syntax error
「構文エラー,文法エラー」として,compiler 「コンパイラ」によって検出されます.これは,program
bug 「プログラムバグ」とは異なります.
programming language 「プログラミング言語」とそのsyntax 「構文規則,構文法」によって,program construct
「プログラム構文,プログラム構成要素」は異なるところがありますが,代表的なものを列挙します.
| 英語 | 日本語 | |
| sentence | 文 | |
| statement | 文(プログラム言語の時) | |
| module |
モジュール routine =< module =< application =< system |
|
| sub-module | サブモジュール | |
| main program |
メインプログラム,主プログラム routine =< module =< application =< system |
|
| subprogram | サブプログラム | |
| routine |
ルーチン routine =< module =< application =< system |
|
| subroutine | サブルーチン | |
| procedure |
手続き routine =< module =< application =< system |
|
| function |
関数 function: 関数,機能 |
|
| recursive program |
再帰的プログラム,リカーシブプログラム recursive and reentrant:再帰的と再入可能 |
|
| reentrant program |
再入プログラム,リエントラントプログラム recursive and reentrant:再帰的と再入可能 |
|
| block structure | ブロック構造 | |
| nesting structure | ネスト構造 | |
| class | クラス | |
| instance | インスタンス | |
| assignment statement |
代入文 式(expression)と代入(assignment) |
|
| input statement | 入力文 | |
| output statement | 出力文 | |
| a | sequence structure | 順次構造 |
| b | selection structure | 選択構造 |
| branch structure | 分岐構造 | |
| CASE statement | ケース文 | |
| IF statement | イフ文 | |
| c | repetition structure | 繰り返し構造,反復構造 |
| WHILE_DO statement | ||
| REPEAT_UNTIL statement | ||
| FOR statement | ||
| construct | 構文,構成要素 | |
| syntax | 構文規則,構文法 | |
| syntax error | 構文エラー,文法エラー | |
| program bug | プログラムバグ | |
| programming language | プログラミング言語」 | |