Symbols (記号) - used in this manual
| Symbol | Description in English | Description in Japanese |
| log | Logical Value ( TRUE or FALSE ) | 論理値 ( TRUE 又は FALSE ) |
| s | String Value | 文字列 |
| i, j, k | Interger Value ( or Character ) | 整数値、又は、文字値 |
| c | ||
| x, y, z | Double Value | 実数値 |
| arry | Array or Hash | 配列、又は、ハッシュ |
| file | File Name ( in String ) or File Pointer | ファイル名を表す文字列、又は、ファイルポインタ |
| /RE/ | Regular Expression in String | 正規表現を表す文字列 |
| expr | Arbitrary Data Value | 任意のデータ値 |
| void | No Return Value or No Argument | 戻り値無し、又は、引き数無し |
| [ ] | Inside of [ ] is Optional | [ ] 内部は省略可能 |
- If same symbols are used at once, they are distinguished by symbols with number.
- もし、複数の同じ記号が同時に使われる場合は、番号を付けて区別されます。
Examples (例題)
-
Logical Value - 論理値
log1 = TRUE log2 = FALSE log3 = (3.14!=4) && (3.14<=4) # (TRUE)&&(TRUE) -> TRUE
-
String Value - 文字列
s1 = "AIR-Lang\n" s2 = "Hello," + "World!" s3 = "" # 空の文字列
-
Integer Value - 整数値
i = 100 j = 0 k = 0xFF # 16進数 c1 = 'A' c2 = 'b'-('a'-'A') # 'B' c3 = 103 # 'C'
-
Double Value - 実数値
x = +3.141592654 y = 0.0 z = -1.234867E+89
-
Array and Hash - 配列とハッシュ
arry[0] = -1234.567 arry[1] = +1000 arry[2] = "No Data" arry[4,6,8,9,10] = NULL arry["ABC",NULL] = TRUE
-
File Name or File Pointer - ファイル名、又は、ファイルポインタ
file0 = stdin # 標準入力(=STDIN) file1 = stdout # 標準出力(=STDOUT) file2 = stderr # 標準エラー出力(=STDERR) file3 = "/dev/null" # ファイル名(特殊ファイル名) file4 = "main.c" # ファイル名(通常ファイル名)
-
Regular Expression - 正規表現(書式="/POSIX標準書式/")
re1 = "/[ABC]+/" re2 = "/^[Aa].*[Zz]$/" re3 = "/^$/"