OSDN Git Service

GitHub で公開していた内容を SourceForge.JP へ複製
authorFu-sen <fu-sen@shigakeiichi.com>
Thu, 9 Jan 2014 06:16:39 +0000 (15:16 +0900)
committerFu-sen <fu-sen@shigakeiichi.com>
Thu, 9 Jan 2014 06:16:39 +0000 (15:16 +0900)
256 files changed:
HUG/ATTACH.txt [new file with mode: 0644]
HUG/BUTTON.txt [new file with mode: 0644]
HUG/CALLBACK.txt [new file with mode: 0644]
HUG/CALLBACKX.txt [new file with mode: 0644]
HUG/CANVAS.txt [new file with mode: 0644]
HUG/CHECK.txt [new file with mode: 0644]
HUG/CIRCLE.txt [new file with mode: 0644]
HUG/CLIPBOARD.txt [new file with mode: 0644]
HUG/COMBO.txt [new file with mode: 0644]
HUG/DISABLE.txt [new file with mode: 0644]
HUG/DISPLAY.txt [new file with mode: 0644]
HUG/DRAW.txt [new file with mode: 0644]
HUG/Dialog Response Codes.txt [new file with mode: 0644]
HUG/EDIT.txt [new file with mode: 0644]
HUG/ENABLE.txt [new file with mode: 0644]
HUG/ENTRY.txt [new file with mode: 0644]
HUG/FILEDIALOG.txt [new file with mode: 0644]
HUG/FOCUS.txt [new file with mode: 0644]
HUG/FONT.txt [new file with mode: 0644]
HUG/FRAME.txt [new file with mode: 0644]
HUG/GET.txt [new file with mode: 0644]
HUG/GETPROPERTY.txt [new file with mode: 0644]
HUG/GRAB$.txt [new file with mode: 0644]
HUG/HIDE.txt [new file with mode: 0644]
HUG/HSEPARATOR.txt [new file with mode: 0644]
HUG/HSLIDER.txt [new file with mode: 0644]
HUG/HUGLIB$.txt [new file with mode: 0644]
HUG/HUGOPTIONS.txt [new file with mode: 0644]
HUG/HUGVERSION$.txt [new file with mode: 0644]
HUG/IMAGE.txt [new file with mode: 0644]
HUG/INIT.txt [new file with mode: 0644]
HUG/KEY.txt [new file with mode: 0644]
HUG/LINE.txt [new file with mode: 0644]
HUG/LIST.txt [new file with mode: 0644]
HUG/MARK.txt [new file with mode: 0644]
HUG/METHOD.txt [new file with mode: 0644]
HUG/MOUSE.txt [new file with mode: 0644]
HUG/MSGDIALOG.txt [new file with mode: 0644]
HUG/NOTEBOOK.txt [new file with mode: 0644]
HUG/OUT.txt [new file with mode: 0644]
HUG/PASSWORD.txt [new file with mode: 0644]
HUG/PICTURE.txt [new file with mode: 0644]
HUG/PIXEL.txt [new file with mode: 0644]
HUG/PROGRESSBAR.txt [new file with mode: 0644]
HUG/PROPERTY.txt [new file with mode: 0644]
HUG/QUIT.txt [new file with mode: 0644]
HUG/RADIO.txt [new file with mode: 0644]
HUG/REGISTER.txt [new file with mode: 0644]
HUG/RESETKEY.txt [new file with mode: 0644]
HUG/SCREENSIZE.txt [new file with mode: 0644]
HUG/SETPROPERTY.txt [new file with mode: 0644]
HUG/SHOW.txt [new file with mode: 0644]
HUG/SPIN.txt [new file with mode: 0644]
HUG/SQUARE.txt [new file with mode: 0644]
HUG/STOCK.txt [new file with mode: 0644]
HUG/SYNC.txt [new file with mode: 0644]
HUG/TEXT.txt [new file with mode: 0644]
HUG/TIMEOUT.txt [new file with mode: 0644]
HUG/TOGGLE.txt [new file with mode: 0644]
HUG/UNFORUS.txt [new file with mode: 0644]
HUG/VSEPARATOR.txt [new file with mode: 0644]
HUG/VSLIDER.txt [new file with mode: 0644]
HUG/WIDGET.txt [new file with mode: 0644]
HUG/WINDOW.txt [new file with mode: 0644]
Rumtime エラーコード.txt [new file with mode: 0644]
standard POSIX variables.txt [new file with mode: 0644]
実行・パラメータ.txt [new file with mode: 0644]
関数・命令/ABS.txt [new file with mode: 0644]
関数・命令/ACOS.txt [new file with mode: 0644]
関数・命令/ADDRESS.txt [new file with mode: 0644]
関数・命令/ALARM.txt [new file with mode: 0644]
関数・命令/ALIAS.txt [new file with mode: 0644]
関数・命令/AND.txt [new file with mode: 0644]
関数・命令/ARGUMENT$.txt [new file with mode: 0644]
関数・命令/ASC.txt [new file with mode: 0644]
関数・命令/ASIN.txt [new file with mode: 0644]
関数・命令/ATN.txt [new file with mode: 0644]
関数・命令/BREAK.txt [new file with mode: 0644]
関数・命令/CALL.txt [new file with mode: 0644]
関数・命令/CATCH.txt [new file with mode: 0644]
関数・命令/CHANGEDIR.txt [new file with mode: 0644]
関数・命令/CHOP$.txt [new file with mode: 0644]
関数・命令/CHR$.txt [new file with mode: 0644]
関数・命令/CLEAR.txt [new file with mode: 0644]
関数・命令/CLOSE.txt [new file with mode: 0644]
関数・命令/COLOR.txt [new file with mode: 0644]
関数・命令/COLUMNS.txt [new file with mode: 0644]
関数・命令/CONCAT$.txt [new file with mode: 0644]
関数・命令/CONST.txt [new file with mode: 0644]
関数・命令/CONTINUE.txt [new file with mode: 0644]
関数・命令/COPY.txt [new file with mode: 0644]
関数・命令/COS.txt [new file with mode: 0644]
関数・命令/CURDIR$.txt [new file with mode: 0644]
関数・命令/CURSOR.txt [new file with mode: 0644]
関数・命令/DATA.txt [new file with mode: 0644]
関数・命令/DAY.txt [new file with mode: 0644]
関数・命令/DEC.txt [new file with mode: 0644]
関数・命令/DECLARE.txt [new file with mode: 0644]
関数・命令/DECR.txt [new file with mode: 0644]
関数・命令/DEF FN.txt [new file with mode: 0644]
関数・命令/DELETE.txt [new file with mode: 0644]
関数・命令/END.txt [new file with mode: 0644]
関数・命令/ENDFILE.txt [new file with mode: 0644]
関数・命令/EPRINT.txt [new file with mode: 0644]
関数・命令/EQ.txt [new file with mode: 0644]
関数・命令/EQUAL.txt [new file with mode: 0644]
関数・命令/ERROR.txt [new file with mode: 0644]
関数・命令/ERR$.txt [new file with mode: 0644]
関数・命令/EVEN.txt [new file with mode: 0644]
関数・命令/EXEC$.txt [new file with mode: 0644]
関数・命令/EXIT.txt [new file with mode: 0644]
関数・命令/EXP.txt [new file with mode: 0644]
関数・命令/EXTRACT$.txt [new file with mode: 0644]
関数・命令/FALSE.txt [new file with mode: 0644]
関数・命令/FILEEXISTS.txt [new file with mode: 0644]
関数・命令/FILELEN.txt [new file with mode: 0644]
関数・命令/FILETIME.txt [new file with mode: 0644]
関数・命令/FILETYPE.txt [new file with mode: 0644]
関数・命令/FILL$.txt [new file with mode: 0644]
関数・命令/FLOOR.txt [new file with mode: 0644]
関数・命令/FOR.txt [new file with mode: 0644]
関数・命令/FP.txt [new file with mode: 0644]
関数・命令/FREE.txt [new file with mode: 0644]
関数・命令/FUNCTION.txt [new file with mode: 0644]
関数・命令/GETBYTE.txt [new file with mode: 0644]
関数・命令/GETENVIRON$.txt [new file with mode: 0644]
関数・命令/GETFILE.txt [new file with mode: 0644]
関数・命令/GETKEY.txt [new file with mode: 0644]
関数・命令/GETLINE.txt [new file with mode: 0644]
関数・命令/GETPEER$.txt [new file with mode: 0644]
関数・命令/GETX.txt [new file with mode: 0644]
関数・命令/GETY.txt [new file with mode: 0644]
関数・命令/GLOBAL.txt [new file with mode: 0644]
関数・命令/GOSUB.txt [new file with mode: 0644]
関数・命令/GOTO.txt [new file with mode: 0644]
関数・命令/GOTOXY.txt [new file with mode: 0644]
関数・命令/HEX$.txt [new file with mode: 0644]
関数・命令/HOST$.txt [new file with mode: 0644]
関数・命令/HOUR.txt [new file with mode: 0644]
関数・命令/IF.txt [new file with mode: 0644]
関数・命令/IMPORT.txt [new file with mode: 0644]
関数・命令/INCLUDE.txt [new file with mode: 0644]
関数・命令/INCR.txt [new file with mode: 0644]
関数・命令/INPUT.txt [new file with mode: 0644]
関数・命令/INSTR.txt [new file with mode: 0644]
関数・命令/INSTRREV.txt [new file with mode: 0644]
関数・命令/INTL$.txt [new file with mode: 0644]
関数・命令/ISFALSE.txt [new file with mode: 0644]
関数・命令/ISTRUE.txt [new file with mode: 0644]
関数・命令/JOIN.txt [new file with mode: 0644]
関数・命令/LABEL.txt [new file with mode: 0644]
関数・命令/LCASE$.txt [new file with mode: 0644]
関数・命令/LEFT$.txt [new file with mode: 0644]
関数・命令/LEN.txt [new file with mode: 0644]
関数・命令/LET.txt [new file with mode: 0644]
関数・命令/LOCAL.txt [new file with mode: 0644]
関数・命令/LOG.txt [new file with mode: 0644]
関数・命令/LOOKUP.txt [new file with mode: 0644]
関数・命令/MAKEDIR.txt [new file with mode: 0644]
関数・命令/MAXRANDOM.txt [new file with mode: 0644]
関数・命令/MEMCHECK.txt [new file with mode: 0644]
関数・命令/MEMORY.txt [new file with mode: 0644]
関数・命令/MEMREWIND.txt [new file with mode: 0644]
関数・命令/MEMTELL.txt [new file with mode: 0644]
関数・命令/MID$.txt [new file with mode: 0644]
関数・命令/MINUTE.txt [new file with mode: 0644]
関数・命令/MOD.txt [new file with mode: 0644]
関数・命令/MONTH.txt [new file with mode: 0644]
関数・命令/MONTH$.txt [new file with mode: 0644]
関数・命令/NE.txt [new file with mode: 0644]
関数・命令/NL$.txt [new file with mode: 0644]
関数・命令/NNTL$.txt [new file with mode: 0644]
関数・命令/NOT.txt [new file with mode: 0644]
関数・命令/NOW.txt [new file with mode: 0644]
関数・命令/ODD.txt [new file with mode: 0644]
関数・命令/OPEN.txt [new file with mode: 0644]
関数・命令/OPTION.txt [new file with mode: 0644]
関数・命令/OR.txt [new file with mode: 0644]
関数・命令/OS$.txt [new file with mode: 0644]
関数・命令/PEEK.txt [new file with mode: 0644]
関数・命令/PI.txt [new file with mode: 0644]
関数・命令/POKE.txt [new file with mode: 0644]
関数・命令/POW.txt [new file with mode: 0644]
関数・命令/PRAGMA.txt [new file with mode: 0644]
関数・命令/PRINT.txt [new file with mode: 0644]
関数・命令/PROTO.txt [new file with mode: 0644]
関数・命令/PULL.txt [new file with mode: 0644]
関数・命令/PUSH.txt [new file with mode: 0644]
関数・命令/PUTBYTE.txt [new file with mode: 0644]
関数・命令/PUTLINE.txt [new file with mode: 0644]
関数・命令/RANDOM.txt [new file with mode: 0644]
関数・命令/READ.txt [new file with mode: 0644]
関数・命令/READLN.txt [new file with mode: 0644]
関数・命令/RECEIVE.txt [new file with mode: 0644]
関数・命令/RECORD.txt [new file with mode: 0644]
関数・命令/REDIM.txt [new file with mode: 0644]
関数・命令/REGEX.txt [new file with mode: 0644]
関数・命令/REGLEN.txt [new file with mode: 0644]
関数・命令/RELATE.txt [new file with mode: 0644]
関数・命令/REM.txt [new file with mode: 0644]
関数・命令/RENAME.txt [new file with mode: 0644]
関数・命令/REPEAT.txt [new file with mode: 0644]
関数・命令/REPLACE$.txt [new file with mode: 0644]
関数・命令/RESIZE.txt [new file with mode: 0644]
関数・命令/RESTORE.txt [new file with mode: 0644]
関数・命令/RESUME.txt [new file with mode: 0644]
関数・命令/RETURN.txt [new file with mode: 0644]
関数・命令/RETVAL.txt [new file with mode: 0644]
関数・命令/REVERSE$.txt [new file with mode: 0644]
関数・命令/REWIND.txt [new file with mode: 0644]
関数・命令/RIGHT$.txt [new file with mode: 0644]
関数・命令/RND.txt [new file with mode: 0644]
関数・命令/ROUND.txt [new file with mode: 0644]
関数・命令/ROWS.txt [new file with mode: 0644]
関数・命令/SCROLL.txt [new file with mode: 0644]
関数・命令/SEARCH.txt [new file with mode: 0644]
関数・命令/SECOND.txt [new file with mode: 0644]
関数・命令/SEED.txt [new file with mode: 0644]
関数・命令/SEEK.txt [new file with mode: 0644]
関数・命令/SELECT.txt [new file with mode: 0644]
関数・命令/SEND.txt [new file with mode: 0644]
関数・命令/SETENVIRON.txt [new file with mode: 0644]
関数・命令/SGN.txt [new file with mode: 0644]
関数・命令/SIN.txt [new file with mode: 0644]
関数・命令/SIZEOF.txt [new file with mode: 0644]
関数・命令/SLEEP.txt [new file with mode: 0644]
関数・命令/SORT.txt [new file with mode: 0644]
関数・命令/SPC$.txt [new file with mode: 0644]
関数・命令/SPLIT.txt [new file with mode: 0644]
関数・命令/SQR.txt [new file with mode: 0644]
関数・命令/STOP.txt [new file with mode: 0644]
関数・命令/STR$.txt [new file with mode: 0644]
関数・命令/SUB.txt [new file with mode: 0644]
関数・命令/SYSTEM.txt [new file with mode: 0644]
関数・命令/TAB$.txt [new file with mode: 0644]
関数・命令/TAN.txt [new file with mode: 0644]
関数・命令/TELL.txt [new file with mode: 0644]
関数・命令/TEXTDOMAIN.txt [new file with mode: 0644]
関数・命令/TIMER.txt [new file with mode: 0644]
関数・命令/TIMEVALUE.txt [new file with mode: 0644]
関数・命令/TRACE.txt [new file with mode: 0644]
関数・命令/TRAP.txt [new file with mode: 0644]
関数・命令/TRUE.txt [new file with mode: 0644]
関数・命令/UCASE$.txt [new file with mode: 0644]
関数・命令/USEC.txt [new file with mode: 0644]
関数・命令/USEH.txt [new file with mode: 0644]
関数・命令/VAL.txt [new file with mode: 0644]
関数・命令/VAR.txt [new file with mode: 0644]
関数・命令/VERSION$.txt [new file with mode: 0644]
関数・命令/WAIT.txt [new file with mode: 0644]
関数・命令/WEEK.txt [new file with mode: 0644]
関数・命令/WEEKDAY$.txt [new file with mode: 0644]
関数・命令/WHILE.txt [new file with mode: 0644]
関数・命令/WITH.txt [new file with mode: 0644]
関数・命令/WRITELN.txt [new file with mode: 0644]
関数・命令/YEAR.txt [new file with mode: 0644]

diff --git a/HUG/ATTACH.txt b/HUG/ATTACH.txt
new file mode 100644 (file)
index 0000000..c6e8575
--- /dev/null
@@ -0,0 +1 @@
+ATTACH\r\rATTACH(window, widget, x, y)\r\rType: directive\r\rThis function attaches a widget to a window at position <x>, <y>. The top left of the window should be taken as reference (0, 0).\rThis directive also can be used to position a Window on the screen. The first argument must then contain a 0, and the second argument must contain the Window ID.
\ No newline at end of file
diff --git a/HUG/BUTTON.txt b/HUG/BUTTON.txt
new file mode 100644 (file)
index 0000000..b17664d
--- /dev/null
@@ -0,0 +1 @@
+BUTTON\r\rBUTTON("caption", xsize, ysize)\r\rType: function\r\rボタンを生成します。\r"caption" = ボタンの文字\r<xsize>  = 横幅\r<ysize> = 縦幅\r戻り値 = 生成されたボタンの ID\r
\ No newline at end of file
diff --git a/HUG/CALLBACK.txt b/HUG/CALLBACK.txt
new file mode 100644 (file)
index 0000000..99c276d
--- /dev/null
@@ -0,0 +1 @@
+CALLBACK\r\rCALLBACK(widget, function)\rType: directive\rDefines a self-defined <function> where HUG should jump to when an event for <widget> occurs.
\ No newline at end of file
diff --git a/HUG/CALLBACKX.txt b/HUG/CALLBACKX.txt
new file mode 100644 (file)
index 0000000..35d0b8a
--- /dev/null
@@ -0,0 +1 @@
+CALLBACKX\r\rCALLBACKX(widget, function, value)\rType: directive\rDefines a self-defined <function> where HUG should jump to when an event for <widget> occurs, and pass <value> to that function. The arguments in the callback function should catch this value.\rExample:\rINCLUDE "hug.bac" \r\rSUB demo(NUMBER widget, NUMBER value) \r    PRINT value \rEND SUB \r\rwindow = WINDOW("Hello", 200, 200) \rbutton = BUTTON("press here", 100, 50) \rATTACH (window, button, 10, 10) \rCALLBACKX(button, demo, 12345) \rDISPLAY\r
\ No newline at end of file
diff --git a/HUG/CANVAS.txt b/HUG/CANVAS.txt
new file mode 100644 (file)
index 0000000..b02769b
--- /dev/null
@@ -0,0 +1 @@
+CANVAS\r\rCANVAS(xsize, ysize)\rType: function\rCreates a canvas of width <xsize> and height <ysize>. Returns the ID of the created canvas. The top left corner is defined as position(0, 0). The canvas created last is regarded as the default canvas where the drawing takes place. The default canvas can be changed with the function DRAW.\rNote that the canvas also can be created as an OpenGL canvas, provided that either the GtkGlArea library or the GtkGlext library is available on the system. To do so, use the CANVAS option in HUGOPTIONS before creating the canvas.\r
\ No newline at end of file
diff --git a/HUG/CHECK.txt b/HUG/CHECK.txt
new file mode 100644 (file)
index 0000000..181d46b
--- /dev/null
@@ -0,0 +1 @@
+CHECK\r\rCHECK("caption", xsize, ysize)\rType: function\rチェックボタンを生成します。\r"caption" ボタンの横に表示する文字列\r<xsize> = 横幅\r<ysize> = 縦幅\r戻り値 = 生成されたボタンの ID\r
\ No newline at end of file
diff --git a/HUG/CIRCLE.txt b/HUG/CIRCLE.txt
new file mode 100644 (file)
index 0000000..7c82414
--- /dev/null
@@ -0,0 +1 @@
+CIRCLE\r\rCIRCLE("color", xposition, yposition, width, height, fill)\r\rType: directive\r\r円を描きます。GL キャンバスで有効です。\r"color" = 色。"#rrggbb" の形式。赤なら"#FF0000"\r<xposition> = 円を構成する長方形左上の横座標\r<yposition> = 円を構成する長方形左上の縦座標\r<width> = 横幅\r<height> = 縦幅\r<fill> = 0:ワイヤー / 0 以外:塗りつぶす\r
\ No newline at end of file
diff --git a/HUG/CLIPBOARD.txt b/HUG/CLIPBOARD.txt
new file mode 100644 (file)
index 0000000..d76328a
--- /dev/null
@@ -0,0 +1 @@
+CLIPBOARD\r\rCLIPBOARD\r\rType: function\r\rクリップボードオブジェクトを得ます。\r\r戻り値 = 生成されたクリップボードのID\r
\ No newline at end of file
diff --git a/HUG/COMBO.txt b/HUG/COMBO.txt
new file mode 100644 (file)
index 0000000..2601ea6
--- /dev/null
@@ -0,0 +1 @@
+COMBO\r\rCOMBO("text", xsize, ysize)\rType: function\rComboBox(パーツを配置できるウインドウ)を生成します。\r\r"text" = ボックス名\r<xsize> = 横の大きさ\r<ysize> = 縦の大きさ\r戻り値 = 生成された ConboBox の ID\r
\ No newline at end of file
diff --git a/HUG/DISABLE.txt b/HUG/DISABLE.txt
new file mode 100644 (file)
index 0000000..ed1e8ec
--- /dev/null
@@ -0,0 +1 @@
+DISABLE\r\rDISABLE(widget)\r\rType: method\r\rウイジェットが使えないようにします。\r\r<widget> = ウイジェット ID\r
\ No newline at end of file
diff --git a/HUG/DISPLAY.txt b/HUG/DISPLAY.txt
new file mode 100644 (file)
index 0000000..02892d0
--- /dev/null
@@ -0,0 +1 @@
+DISPLAY\r\rDISPLAY\r\rType: directive\r\rStarts executing the main event loop.\rこの機能は GUI を生成した最後に呼び出します。\r
\ No newline at end of file
diff --git a/HUG/DRAW.txt b/HUG/DRAW.txt
new file mode 100644 (file)
index 0000000..90f0b1e
--- /dev/null
@@ -0,0 +1 @@
+DRAW\r\rDRAW(canvas)\rType: directive\rDefines the default canvas where the drawing takes place.\rIn case of an OpenGL canvas where GL_FREEZE is enabled (see HUGOPTIONS), or in case non-HUG drawing is used, this function must be called first, as it will prepare the drawing buffer. Then after the actual drawing is finished, the GL canvas must be updated using the SYNC directive.\rIn all cases the DRAW directive returns the actual lowlevel drawing sub widget.\r
\ No newline at end of file
diff --git a/HUG/Dialog Response Codes.txt b/HUG/Dialog Response Codes.txt
new file mode 100644 (file)
index 0000000..0321c68
--- /dev/null
@@ -0,0 +1 @@
+Dialog Response Codes\r\rCode                            Meaning\rGTK_RESPONSE_ACCEPT             Accept button was pressed\rGTK_RESPONSE_DELETE_EVENT       Dialog was closed\rGTK_RESPONSE_OK                 OK button was pressed\rGTK_RESPONSE_CANCEL             Cancel button was pressed\rGTK_RESPONSE_CLOSE              Close button was pressed\rGTK_RESPONSE_YES                Yes button was pressed\rGTK_RESPONSE_NO                 No button was pressed\rGTK_RESPONSE_APPLY              Apply button was pressed\rGTK_RESPONSE_HELP               Help button was pressed\r
\ No newline at end of file
diff --git a/HUG/EDIT.txt b/HUG/EDIT.txt
new file mode 100644 (file)
index 0000000..0734c71
--- /dev/null
@@ -0,0 +1 @@
+EDIT\r\rEDIT(xsize, ysize)\rType: directive\r複数行のテキストボックスを生成します。\r<xsize> = 横幅\r<ysize> = 縦幅\r戻り値 = 生成されたテキストボックスの ID
\ No newline at end of file
diff --git a/HUG/ENABLE.txt b/HUG/ENABLE.txt
new file mode 100644 (file)
index 0000000..b88a6c0
--- /dev/null
@@ -0,0 +1 @@
+ENABLE\r\rENABLE(widget)\r\rType: method\r\rウィジェットが使えるようにします。\r<widget> = ウィジェット ID\r
\ No newline at end of file
diff --git a/HUG/ENTRY.txt b/HUG/ENTRY.txt
new file mode 100644 (file)
index 0000000..a585133
--- /dev/null
@@ -0,0 +1 @@
+ENTRY\r\rENTRY("text", xsize, ysize)\r\rType: function\r\r1行のテキストボックスを生成します。\r\r"text" = 入っているテキスト\r<xsize> = 横幅\r<ysize> = 縦幅\r戻り値 = 生成されたテキストボックスの ID
\ No newline at end of file
diff --git a/HUG/FILEDIALOG.txt b/HUG/FILEDIALOG.txt
new file mode 100644 (file)
index 0000000..f64a278
--- /dev/null
@@ -0,0 +1 @@
+FILEDIALOG\r\rFILEDIALOG("title", "caption", xsize, ysize, action)\rType: function\r\rファイルダイヤログを生成します。\r生成されたダイヤログは非表示になるため、SHOW で表示させます。\r"title" = タイトル\r"caption" = キャプション\r<xsize> = 横幅\r<ysize> = 縦幅\r<action> = 0:ファイルを開く / 1:ファイルを保存 / 2:フォルダの選択 / 3: フォルダの生成\r戻り値 = 生成されたダイヤログの ID\r
\ No newline at end of file
diff --git a/HUG/FOCUS.txt b/HUG/FOCUS.txt
new file mode 100644 (file)
index 0000000..1fdcb51
--- /dev/null
@@ -0,0 +1 @@
+FOCUS\r\rFOCUS(widget)\r\rType: method\r\r指定のウィジェットにフォーカスを当てます。\r\r<widget> = ウィジェット ID\r
\ No newline at end of file
diff --git a/HUG/FONT.txt b/HUG/FONT.txt
new file mode 100644 (file)
index 0000000..656ea49
--- /dev/null
@@ -0,0 +1 @@
+FONT\r\rFONT(widget, "Font name")\r\rType: directive\r\rウィジェットのフォントを設定します。\r\r<widget> = ウィジェットの種類\r"Font name" = "フォント名 サイズ"\r\r例:\rFONT(window, "Luxi Mono 12")\rFONT(button, "Arial 15")\r
\ No newline at end of file
diff --git a/HUG/FRAME.txt b/HUG/FRAME.txt
new file mode 100644 (file)
index 0000000..c9e6df5
--- /dev/null
@@ -0,0 +1 @@
+FRAME\r\rFRAME(xsize, ysize)\r\rType: function\r\rフレームを設定します。\r\r<xsize> = 横幅\r<ysize> = 縦幅\r戻り値 = 生成したフレームの ID\r
\ No newline at end of file
diff --git a/HUG/GET.txt b/HUG/GET.txt
new file mode 100644 (file)
index 0000000..7f8768c
--- /dev/null
@@ -0,0 +1 @@
+GET\r\rGET(widget)\rType: method\rウィジェットから値を得ます。\r\rウィジェット    値\rWindow          0 = ウインドウ / 1 = 全画面\rButton          0 = 押していない / 1 = 押している\rToggle          0 = 押していない / 1 = 押している\rStock           0 = 押していない / 1 = 押している\rCheck           0 = 押していない / 1 = 押している\rRadio           0 = 選択してない / 1 = 選択してる\rEntry           影響なし\rPassword        0 = パスワードが見えない / 1 = パスワードが見える\rMark            0 = 選択してない / 1 = 選択してる\rCombo           選ばれた列のインデックス番号\rProgressbar     進捗パーセント\rHseparator      影響なし\rVseparator      影響なし\rFrame           影響なし\rEdit            テキストの行数\rList            選択されている列のインデックス番号\rSpin            現在の値\rNotebook        現在のタブ番号\rMsgdialog       影響なし\rFiledialog      影響なし\rImage           影響なし\rClipboard       影響なし\rHslider         現在のスライザー値\rVslider         現在のスライザー値\r
\ No newline at end of file
diff --git a/HUG/GETPROPERTY.txt b/HUG/GETPROPERTY.txt
new file mode 100644 (file)
index 0000000..5586fca
--- /dev/null
@@ -0,0 +1 @@
+GETPROPERTY\r\rGETPROPERTY(widget, "property", variable)\r\rType: directive\r\rRetrieves the value of a property of a widget into a variable.\r\rExample:\rDECLARE t$\rGETPROPERTY(win, "title", ADDRESS(t$))\r
\ No newline at end of file
diff --git a/HUG/GRAB$.txt b/HUG/GRAB$.txt
new file mode 100644 (file)
index 0000000..7474627
--- /dev/null
@@ -0,0 +1 @@
+GRAB$\r\rGRAB$(widget)\rType: method\rウィジェットのテキストを得ます。\r\rウェジェット    得る値\rWindow          タイトルバーのテキスト\rButton          ボタンの caption\rToggle          ボタンの caption\rStock           ボタンの stock text\rCheck           チェックボタンの右にある caption\rRadio           ラジオボタンの右にある caption\rEntry           ボックス内のテキスト\rPassword        ボックス内のテキスト\rMark            Gets the text from the label (Mark)\rCombo           Get the current selection of the combobox\rProgressbar     Gets the text from the progressbar\rHseparator      変化なし\rVseparator      変化なし\rFrame           Gets the caption from a frame\rEdit            Gets the full text from a multiline editor\rList            Gets the current selected line from the list\rSpin            変化なし\rNotebook        Returns caption in the active tab\rMsgdialog       Returns the text in the message dialog\rFiledialog      Returns the selected filename in the file dialog\rImage           Returns the filename being displayed\rClipboard       Gets the text from the clipboard\rHslider         変化なし\rVslider         変化なし\r
\ No newline at end of file
diff --git a/HUG/HIDE.txt b/HUG/HIDE.txt
new file mode 100644 (file)
index 0000000..e91cc70
--- /dev/null
@@ -0,0 +1 @@
+HIDE\r\rHIDE(widget)\r\rType: method\r\rウィジェットで非表示にします。\r\r<widget> = ウィジェット ID\r
\ No newline at end of file
diff --git a/HUG/HSEPARATOR.txt b/HUG/HSEPARATOR.txt
new file mode 100644 (file)
index 0000000..0c166dc
--- /dev/null
@@ -0,0 +1 @@
+HSEPARATOR\r\rHSEPARATOR(xsize)\r\rType: function\r\r横セバレーターを生成します。\r\r<xsize> = 横幅\r帰り値 = 生成されたセパレーターの ID\r
\ No newline at end of file
diff --git a/HUG/HSLIDER.txt b/HUG/HSLIDER.txt
new file mode 100644 (file)
index 0000000..54138be
--- /dev/null
@@ -0,0 +1 @@
+HSLIDER\r\rHSLIDER(xsize, ysize, begin, end, step)\r\rType: function\r\r横のスライダーを生成します。\r\r<xsize> = 横幅\r<ysize> = 縦幅\r<begin> = 開始値\r<end> = 終了値\r<step> = 間隔幅\r戻り値 = 生成されたスライダーの ID\r
\ No newline at end of file
diff --git a/HUG/HUGLIB$.txt b/HUG/HUGLIB$.txt
new file mode 100644 (file)
index 0000000..2e0ab83
--- /dev/null
@@ -0,0 +1 @@
+HUGLIB$\r\rHUGLIB$("type")\rType: function\rReturns the actual backend library currently used by HUG. Arguments can be one of the following:\r"gtk" – current GTK library version\r"gdk" - current GDK library version\r"glib" - current Glib library version\r"gobject" - current Gobject library version\r"pango" - current Pango library version\r"glarea" - current GtkGlArea library version\r"glext" - current GtkGlExt library version\r
\ No newline at end of file
diff --git a/HUG/HUGOPTIONS.txt b/HUG/HUGOPTIONS.txt
new file mode 100644 (file)
index 0000000..e61479a
--- /dev/null
@@ -0,0 +1 @@
+HUGOPTIONS\r\rHUGOPTIONS("option")\rType: directive\rThis function influences the behavior of the HUG library. Per invocation only one option can be set. The following options are recognized:\r"TABLE x y" - define a table as layer for the ATTACH function\r"BASEXFTDPI x" - define the default font dpi for the current desktop. Default: 96\r"SCALING" - the created GUI should be scaled to fit the desktop font (default)\r"NOSCALING" - undo the scaling of the GUI\r"WIDGET_SHOW x" - by default show widgets at creation (1) or not (0). Default: 1\r"FONT name$" - default font for all the widgets. Example: "FONT Arial 12"\r"CANVAS type$" - define canvas type (GL, GLAREA, GLEXT, GOO or GTK). The option GL tries to autodetect a suitable library. Example: "CANVAS GL"\r"GL_FREEZE x" – automatically update the GL canvas (0), or not (1). Enabling this option will achieve better performance. Default: 0\r
\ No newline at end of file
diff --git a/HUG/HUGVERSION$.txt b/HUG/HUGVERSION$.txt
new file mode 100644 (file)
index 0000000..bede204
--- /dev/null
@@ -0,0 +1 @@
+HUGVERSION$\r\rHUGVERSION$\r\rType: variable\r\rHUG のバージョンを返します。\r\r戻り値 = HUG のバージョン
\ No newline at end of file
diff --git a/HUG/IMAGE.txt b/HUG/IMAGE.txt
new file mode 100644 (file)
index 0000000..2f40af9
--- /dev/null
@@ -0,0 +1 @@
+IMAGE\r\rIMAGE("file", xsize, ysize)\r\rType: directive\r\r画像を表示します。\r\r"file" = 画像ファイル名\r<xsize> = 横幅\r<ysize> = 縦幅\r
\ No newline at end of file
diff --git a/HUG/INIT.txt b/HUG/INIT.txt
new file mode 100644 (file)
index 0000000..099d54f
--- /dev/null
@@ -0,0 +1 @@
+INIT\r\rINIT\r\rType: directive\r\rHUG ライブラリを初期化します。\r共有ライブラリが入り HUG の編集が生じた際に実行します。\r通常は HUG を入れた際に自動的に実行されます。\r
\ No newline at end of file
diff --git a/HUG/KEY.txt b/HUG/KEY.txt
new file mode 100644 (file)
index 0000000..a6040d8
--- /dev/null
@@ -0,0 +1 @@
+KEY\r\rKEY\rType: function\r最後にキーボードから押されたキーを返します。\rRESETKEY も参照して下さい。\r\r戻り値: GDK ヘッダーファイル <gdk/gdkkeysyms.h> によって得られた値
\ No newline at end of file
diff --git a/HUG/LINE.txt b/HUG/LINE.txt
new file mode 100644 (file)
index 0000000..88378c3
--- /dev/null
@@ -0,0 +1 @@
+LINE\r\rLINE("color", xstart, ystart, xend, yend)\rType: directive\r\r線を描きます。GL キャンバスで有効です。\r\r"color" = 色。"#rrggbb" 形式。緑なら "#00FF00"\r<xstart> = 開始横座標\r<ystart> = 開始縦座標\r<xend> = 終了横座標\r<yend> = 終了縦座標\r
\ No newline at end of file
diff --git a/HUG/LIST.txt b/HUG/LIST.txt
new file mode 100644 (file)
index 0000000..9f0ec22
--- /dev/null
@@ -0,0 +1 @@
+LIST\r\rLIST(xsize, ysize)\r\rType: function\r\r複数行のリストボックスを生成します。\r\rxsize = 横幅\rysize = 縦幅\r戻り値 = 生成されたリストボックスの ID\r
\ No newline at end of file
diff --git a/HUG/MARK.txt b/HUG/MARK.txt
new file mode 100644 (file)
index 0000000..d96ce2a
--- /dev/null
@@ -0,0 +1 @@
+MARK\r\rMARK("caption", xsize, ysize)\rType: function\r\rラベルを生成します。\r\r"caption" = キャプション。装飾のために Pango Text Attribute Markup Language を含める事ができます。\r<xsize> = 横幅\r<ysize> = 縦幅\r戻り値 = 生成されたラベルの ID\r
\ No newline at end of file
diff --git a/HUG/METHOD.txt b/HUG/METHOD.txt
new file mode 100644 (file)
index 0000000..52059ad
--- /dev/null
@@ -0,0 +1 @@
+METHOD\r\rMETHOD(widget, functype, custom func)\r\rType: directive\r\rAfter an external widget has been registered into HUG (see REGISTER), it is possible to define the default HUG methods also. This is an optional step. The widgetID needs to be passed as a first argument, then the type of HUG method as second argument, where 1 = GRAB$, 2 = TEXT, 3 = GET and 4 = SET.\rThe last argument must contain the name of the self-defined SUB or FUNCTION which implements the method. Subsequent invocations of GRAB$, TEXT, GET and SET for the external widget will now execute the self-defined implementation of these methods.\r
\ No newline at end of file
diff --git a/HUG/MOUSE.txt b/HUG/MOUSE.txt
new file mode 100644 (file)
index 0000000..af9b301
--- /dev/null
@@ -0,0 +1 @@
+MOUSE\r\rMOUSE(x)\r\rType: function\r\rキャンバス上でのマウス情報を返します。\r\r<x> = 0:横座標 / 1:縦座標 / 2:ボタン番号 / 3:マウスホイール方向 0=上 1=下 / 4:マウスが有効か\rマウスがキャンバスの外にある時は -1 が返されます。\r
\ No newline at end of file
diff --git a/HUG/MSGDIALOG.txt b/HUG/MSGDIALOG.txt
new file mode 100644 (file)
index 0000000..45d2a75
--- /dev/null
@@ -0,0 +1 @@
+MSGDIALOG\r\rMSGDIALOG("text", xsize, ysize, type, buttons)\rType: function\rCreates a dialog with a text, and a width of <xsize> and a height of <ysize>. Returns the ID of the created dialog.\rThe type of dialog can be one of the following: 0 - informational, 1 - warning, 2 - question, - 3 - error and 4 - other.\rThe buttons can have the following values: 0 - no button, 1 - ok button, 2 - close, 3 - cancel, 4 - yes/no, and 5 - ok/cancel.\rBy default the dialog will be hidden. Use the SHOW function to make it visible.\rThe text may contain Pango Text Attribute Markup Language to set different styles and formats.\rThe dialog can be connected to a callback function which should have two arguments, the first for the dialog and the second for the button. For example:\rINCLUDE "hug.bac"\rSUB HandleError(NUMBER dialog, int button) \r    HIDE(dialog) \r    IF button = GTK_RESPONSE_YES THEN \r        <...your code here...>\r    END IF \rEND SUB\rErrDlg = MSGDIALOG("Error", 300, 200, 3, 4) \rCALLBACK(ErrDlg, HandleError)\rFor a full list of dialog response codes, please refer to the Appendix.\r
\ No newline at end of file
diff --git a/HUG/NOTEBOOK.txt b/HUG/NOTEBOOK.txt
new file mode 100644 (file)
index 0000000..38abc9b
--- /dev/null
@@ -0,0 +1 @@
+NOTEBOOK\r\rNOTEBOOK("caption", xsize, ysize)\rType: function\rCreates a notebook with one tab containing a caption, and a width of <xsize> and a height of <ysize>. Returns the ID of the created notebook.\r
\ No newline at end of file
diff --git a/HUG/OUT.txt b/HUG/OUT.txt
new file mode 100644 (file)
index 0000000..733a6b3
--- /dev/null
@@ -0,0 +1 @@
+OUT\r\rOUT("text", "fgcolor", "bgcolor", xposition, yposition)\r\rType: directive\r\rデフォルトキャンバスにテキストを描きます。\r\r"text" = 描くテキスト文字。Pango Text Attribute Markup Language を使う事ができます\r"fgcolor" = 文字色。"#rrggbb" で設定します。黄色は "#FFFF00"\r"bgcolor" = 背景色。"#rrggbb" で設定します\rxposition = 左上の横座標\ryposition = 左上の縦座標\r
\ No newline at end of file
diff --git a/HUG/PASSWORD.txt b/HUG/PASSWORD.txt
new file mode 100644 (file)
index 0000000..394f9a1
--- /dev/null
@@ -0,0 +1 @@
+PASSWORD\r\rPASSWORD(xsize, ysize)\r\rType: function\r\rパスワード入力テキストエリアを生成します。ここで入力されたテキストは特別文字に変わって表示されます。\rxsize = 横幅\rysize = 縦幅\r戻り値 = 生成されたテキストエリアの ID\r
\ No newline at end of file
diff --git a/HUG/PICTURE.txt b/HUG/PICTURE.txt
new file mode 100644 (file)
index 0000000..2082394
--- /dev/null
@@ -0,0 +1 @@
+PICTURE\r\rPICTURE("file", xposition, yposition, xsize, ysize)\r\rType: directive\r\rデフォルトキャンバスに画像を描きます。\r\r"file" = 画像ファイル名。画像のファイル形式は自動認識されます\rxposition = 左上の横座標\ryposition = 左上の縦座標\rxsize = 横幅\rysize = 縦幅\r
\ No newline at end of file
diff --git a/HUG/PIXEL.txt b/HUG/PIXEL.txt
new file mode 100644 (file)
index 0000000..5edf3e1
--- /dev/null
@@ -0,0 +1 @@
+PIXEL\r\rPIXEL("color", xposition, yposition)\r\rType: directive\r\r点(ピクセル)を描きます。GL キャンバスで有効です。\r\r"color" = 色。"#rrggbb" 形式。青は "#0000FF"\r<xposition> = 横座標\r<yposition> = 縦座標\r
\ No newline at end of file
diff --git a/HUG/PROGRESSBAR.txt b/HUG/PROGRESSBAR.txt
new file mode 100644 (file)
index 0000000..d956dd3
--- /dev/null
@@ -0,0 +1 @@
+PROGRESSBAR\r\rPROGRESSBAR("caption", xsize, ysize)\r\rType: function\r\rプログレスバーを生成します。\r\r"caption" = キャプション\r<xsize> = 横座標\r<ysize> = 縦座標\r戻り値 = 生成されたプログレスバーの ID\r
\ No newline at end of file
diff --git a/HUG/PROPERTY.txt b/HUG/PROPERTY.txt
new file mode 100644 (file)
index 0000000..d0610c9
--- /dev/null
@@ -0,0 +1 @@
+PROPERTY\r\rPROPERTY(widget, "property", value)\r\rType: directive\r\rSETPROPERTY を参照して下さい\r
\ No newline at end of file
diff --git a/HUG/QUIT.txt b/HUG/QUIT.txt
new file mode 100644 (file)
index 0000000..6d5cff8
--- /dev/null
@@ -0,0 +1 @@
+QUIT\r\rQUIT\r\rType: directive\r\rHUG を出て、プログラムを終了します。\r
\ No newline at end of file
diff --git a/HUG/RADIO.txt b/HUG/RADIO.txt
new file mode 100644 (file)
index 0000000..e526f74
--- /dev/null
@@ -0,0 +1 @@
+RADIO\r\rRADIO("caption", xsize, ysize, group)\r\rType: function\r\rラジオボタンを生成します。\r\r"caption" = キャプション\r<xsize> = 横座標\r<ysize> = 縦座標\r<group> = 0:最初のラジオボタン 1〜:続くラジオボタン\r戻り値 = 生成されたラジオボタンの ID\r
\ No newline at end of file
diff --git a/HUG/REGISTER.txt b/HUG/REGISTER.txt
new file mode 100644 (file)
index 0000000..c485c23
--- /dev/null
@@ -0,0 +1 @@
+REGISTER\r\rREGISTER(widget, xsize, ysize, signal$, signal_listen, to_attach, set_font, set_focus)\rType: directive\rIn case an external widget needs to be visible for the HUG functions ATTACH and CALLBACK, this directive can be used to register the widget into the internal HUG adminstration. The meaning of the arguments:\rwidget: the widget ID to register\rxsize: the width of the new widget\rysize: the height of the new widget\rsignal$: the actual name of the signal to emit when the widget is activated, for example: "activate", "clicked", "show", etc.\rthe (sub-)widget which actually listens to the signal, 0 = default widget\rthe (sub-)widget which actually is attached, 0 = default widget\rthe (sub-)widget which actually displays text, 0 = default widget\rthe (sub-)widget which actually can receive focus, 0 = default widget\rSee also METHOD to optionally register the functions GRAB$, TEXT, GET and SET to an external widget.\r
\ No newline at end of file
diff --git a/HUG/RESETKEY.txt b/HUG/RESETKEY.txt
new file mode 100644 (file)
index 0000000..c1752fb
--- /dev/null
@@ -0,0 +1 @@
+RESETKEY\r\rRESETKEY\rType: function\rResets the last key pressed to '0' so subsequent calls to KEY return '0', until a new key is pressed.\r
\ No newline at end of file
diff --git a/HUG/SCREENSIZE.txt b/HUG/SCREENSIZE.txt
new file mode 100644 (file)
index 0000000..3f6fe88
--- /dev/null
@@ -0,0 +1 @@
+SET\r\rSET(widget, value)\rType: method\rウィジェットに対して値を設定します。\r\rウィジェット    値\rWindow          0 = ウインドウ / 1 = 全画面\rButton          0 = 押していない / 1 = 押している\rToggle          0 = 押していない / 1 = 押している\rStock           0 = 押していない / 1 = 押している\rCheck           0 = 押していない / 1 = 押している\rRadio           0 = 選択してない / 1 = 選択してる\rEntry           影響なし\rPassword        0 = パスワードが見えない / 1 = パスワードが見える\rMark            0 = 選択してない / 1 = 選択してる\rCombo           選ばれた列のインデックス番号\rProgressbar     進捗パーセント\rHseparator      影響なし\rVseparator      影響なし\rFrame           影響なし\rEdit            テキストの行数\rList            選択されている列のインデックス番号\rSpin            現在の値\rNotebook        現在のタブ番号\rMsgdialog       影響なし\rFiledialog      影響なし\rImage           影響なし\rClipboard       影響なし\rHslider         現在のスライザー値\rVslider         現在のスライザー値\r
\ No newline at end of file
diff --git a/HUG/SETPROPERTY.txt b/HUG/SETPROPERTY.txt
new file mode 100644 (file)
index 0000000..b620170
--- /dev/null
@@ -0,0 +1 @@
+SETPROPERTY\r\rSETPROPERTY(widget, "property", value)\r\rType: directive\r\rウィジェットのプロパティを設定します。\r\r例:\rSETPROPERTY(window, "decorated", TRUE)\rSETPROPERTY(button, "tooltip-text", "Testing the properties")\r
\ No newline at end of file
diff --git a/HUG/SHOW.txt b/HUG/SHOW.txt
new file mode 100644 (file)
index 0000000..0b8a97e
--- /dev/null
@@ -0,0 +1 @@
+SHOW\r\rSHOW(widget)\r\rType: method\r\rウィジェットを表示します。\r多くのウィジェットは生成された段階で表示されています。\r
\ No newline at end of file
diff --git a/HUG/SPIN.txt b/HUG/SPIN.txt
new file mode 100644 (file)
index 0000000..30dc4bb
--- /dev/null
@@ -0,0 +1 @@
+SPIN\r\rSPIN(xsize, ysize, start, end, step)\r\rType: function\r\rCreates a spinbutton with a width of <xsize> and a height of <ysize>. The range of integer values lays between <start> and <end>, and will be increased or decreased with <step> size. Returns the ID of the created spin button.\r
\ No newline at end of file
diff --git a/HUG/SQUARE.txt b/HUG/SQUARE.txt
new file mode 100644 (file)
index 0000000..a3b40e6
--- /dev/null
@@ -0,0 +1 @@
+SQUARE\r\rSQUARE("color", xposition, yposition, width, height, fill)\r\rType: directive\r\r長方形を描きます。GL キャンバスで有効です。\r\r"color" = 色。"#rrggbb" 形式で指定します。紫なら "#FF00FF"\r<xposition> = 左上の横座標\r<yposition> = 左上の縦座標\r<width> = 横幅\r<height> = 縦幅\r<fill> = 0:ワイヤー 1:塗りつぶし\r
\ No newline at end of file
diff --git a/HUG/STOCK.txt b/HUG/STOCK.txt
new file mode 100644 (file)
index 0000000..f1ff2d8
--- /dev/null
@@ -0,0 +1 @@
+STOCK\r\rSTOCK("stock-id", xsize, ysize)\r\rType: function\r\rCreates a stock button if used with the correct stockID. These ID's are mentioned in the GTK documentation. The button has a width of <xsize> and a height of <ysize>. Returns the ID of the created stock button.\r
\ No newline at end of file
diff --git a/HUG/SYNC.txt b/HUG/SYNC.txt
new file mode 100644 (file)
index 0000000..4e291f6
--- /dev/null
@@ -0,0 +1 @@
+SYNC\r\rSYNC\rType: directive\rForces an intermediate update of the GUI.\rIn case of an OpenGL canvas, this directive will force a buffer swap also. This particularly should be used when the GL canvas has option GL_FREEZE enabled (see HUGOPTIONS), or in case a non-HUG drawing is applied, so when using plain OpenGL functions directly. In both cases, before the actual GL drawing is executed, the buffer should have been prepared with DRAW.\r
\ No newline at end of file
diff --git a/HUG/TEXT.txt b/HUG/TEXT.txt
new file mode 100644 (file)
index 0000000..b74f361
--- /dev/null
@@ -0,0 +1 @@
+TEXT\r\rTEXT(widget, "text")\rType: method\rウィジェットに対しテキストを設定します。\r\rウェジェット    値\rWindow          タイトルバーのテキスト\rButton          ボタンの caption\rToggle          ボタンの caption\rStock           ボタンの stock text\rCheck           チェックボタンの右にある caption\rRadio           ラジオボタンの右にある caption\rEntry           ボックス内のテキスト\rPassword        ボックス内のテキスト\rMark            Gets the text from the label (Mark)\rCombo           Get the current selection of the combobox\rProgressbar     Gets the text from the progressbar\rHseparator      変化なし\rVseparator      変化なし\rFrame           Gets the caption from a frame\rEdit            Gets the full text from a multiline editor\rList            Gets the current selected line from the list\rSpin            変化なし\rNotebook        Returns caption in the active tab\rMsgdialog       Returns the text in the message dialog\rFiledialog      Returns the selected filename in the file dialog\rImage           Returns the filename being displayed\rClipboard       Gets the text from the clipboard\rHslider         変化なし\rVslider         変化なし\r
\ No newline at end of file
diff --git a/HUG/TIMEOUT.txt b/HUG/TIMEOUT.txt
new file mode 100644 (file)
index 0000000..106bdeb
--- /dev/null
@@ -0,0 +1 @@
+TIMEOUT\r\rTIMEOUT(millisec, sub|function)\rType: directive\rSets up a timeout while the main eventloop is executed. After the timeout in milliseconds, a self-defined <sub> or <function> is executed.\rIf the timeout should not occur again, then the executed function should return FALSE. Canceling a timeout cannot be done using a SUB.\rThe amount of milliseconds can be changed to another value during runtime. Example:\rINCLUDE "hug.bac", INIT, GET, SET, WINDOW, PROGRESSBAR, ATTACH, TIMEOUT, DISPLAY\rDECLARE pb, x, offset \roffset = 1\rFUNCTION set_value \r    INCR x, offset \r    IF x >= 100 OR x <= 0 THEN offset = -1*offset \r    SET(pb, x) \r    PRINT GET(pb) \r    RETURN TRUE \rEND FUNCTION\rINIT \rwin = WINDOW("Progressbar", 200, 30) \rpb = PROGRESSBAR("demo", 200, 30) \rATTACH(win, pb, 0, 0) \rTIMEOUT(100, set_value) \rDISPLAY\r
\ No newline at end of file
diff --git a/HUG/TOGGLE.txt b/HUG/TOGGLE.txt
new file mode 100644 (file)
index 0000000..e990c90
--- /dev/null
@@ -0,0 +1 @@
+TOGGLE\r\rTOGGLE("caption", xsize, ysize)\rType: function\rCreates a toggle button with a caption, and a width of <xsize> and a height of <ysize>. Returns the ID of the created toggle button.\r
\ No newline at end of file
diff --git a/HUG/UNFORUS.txt b/HUG/UNFORUS.txt
new file mode 100644 (file)
index 0000000..4417088
--- /dev/null
@@ -0,0 +1 @@
+UNFOCUS\r\rUNFOCUS(widget)\r\rType: method\r\rウィジェットのフォーカスを無効にします。\r\r<widget> = ウィジェット ID\r
\ No newline at end of file
diff --git a/HUG/VSEPARATOR.txt b/HUG/VSEPARATOR.txt
new file mode 100644 (file)
index 0000000..bec03fe
--- /dev/null
@@ -0,0 +1 @@
+VSEPARATOR\r\rVSEPARATOR(ysize)\r\rType: function\r\r縦セバレーターを生成します。\r\r<ysize> = 縦幅\r帰り値 = 生成されたセパレーターの ID\r
\ No newline at end of file
diff --git a/HUG/VSLIDER.txt b/HUG/VSLIDER.txt
new file mode 100644 (file)
index 0000000..36590f1
--- /dev/null
@@ -0,0 +1 @@
+VSLIDER\r\rVSLIDER(xsize, ysize, begin, end, step)\r\rType: function\r\r縦のスライダーを生成します。\r\r<xsize> = 横幅\r<ysize> = 縦幅\r<begin> = 開始値\r<end> = 終了値\r<step> = 間隔幅\r戻り値 = 生成されたスライダーの ID\r
\ No newline at end of file
diff --git a/HUG/WIDGET.txt b/HUG/WIDGET.txt
new file mode 100644 (file)
index 0000000..8ce4bf3
--- /dev/null
@@ -0,0 +1 @@
+WIDGET\r\rWIDGET\r\rType: variable\r\r最後に生成されたウィジェットの ID を返します。\r\r返し値 = 最後に生成されたウィジェット ID\r
\ No newline at end of file
diff --git a/HUG/WINDOW.txt b/HUG/WINDOW.txt
new file mode 100644 (file)
index 0000000..7aa5e7c
--- /dev/null
@@ -0,0 +1 @@
+WINDOW\r\rWINDOW("title", xsize, ysize)\r\rType: function\r\rウインドウを生成します。\r\r"title" = タイトル\r<xsize> = 横幅\r<ysize> = 縦幅\r戻り値 = 生成されたウインドウの ID\r
\ No newline at end of file
diff --git a/Rumtime エラーコード.txt b/Rumtime エラーコード.txt
new file mode 100644 (file)
index 0000000..7dda95b
--- /dev/null
@@ -0,0 +1 @@
+Appendix A: Runtime error codes\r\r     Code    Meaning                                                        \r       0     Success                                                        \r       1     Trying to access illegal memory                                \r       2     Error opening file                                             \r       3     Could not open library                                         \r       4     Symbol not found in library                                    \r       5     Wrong hexvalue                                                 \r       6     Unable to claim memory                                         \r       7     Unable to delete file                                          \r       8     Could not open directory                                       \r       9     Unable to rename file                                          \r      10     NETWORK argument should contain colon with port number         \r      11     Could not resolve hostname                                     \r      12     Socket error                                                   \r      13     Unable to open address                                         \r      14     Error reading from socket                                      \r      15     Error sending to socket                                        \r      16     Error checking socket                                          \r      17     Unable to bind the specified socket address                    \r      18     Unable to listen to socket address                             \r      19     Cannot accept incoming connection                              \r      20     Unable to remove directory                                     \r      21     Unable to create directory                                     \r      22     Unable to change to directory                                  \r      23     GETENVIRON argument does not exist as environment variable     \r      24     Unable to stat file                                            \r      25     Search contains illegal string                                 \r      26     Cannot return OS name                                          \r      27     Illegal regex expression                                       \r      28     Unable to create bidirectional pipes                           \r      29     Unable to fork process                                         \r      30     Cannot read from pipe                                          \r      31     Gosub nesting too deep                                         \r
\ No newline at end of file
diff --git a/standard POSIX variables.txt b/standard POSIX variables.txt
new file mode 100644 (file)
index 0000000..110e07f
--- /dev/null
@@ -0,0 +1 @@
+Appendix B: standard POSIX variables\r\r               Variable                           Value               \r             EXIT_SUCCESS                           0                 \r             EXIT_FAILURE                           1                 \r             STDIN_FILENO                           0                 \r            STDOUT_FILENO                           1                 \r            STDERR_FILENO                           2                 \r               RAND_MAX                     System dependent          \r
\ No newline at end of file
diff --git a/実行・パラメータ.txt b/実行・パラメータ.txt
new file mode 100644 (file)
index 0000000..b3ffe5e
--- /dev/null
@@ -0,0 +1 @@
+       bash ./bacon.bash myprog.bac\r\r       ./bacon.bash myprog.bac\r\r       ./bacon.bash myprog\r\r       ./bacon.bash http://www.basic-converter.org/fetch.bac\r\r   The BaCon Basic Converter can be started with the following parameters.\r\r     * -c: バイナリー(主に実行ファイル)を作成する C コンパイラーを指定します。 デフォルト値は「gcc」です。例: ./bacon -c cc prog …… C コンパイラーに cc を呼びます。\r\r     * -l: pass libraries to the C linker\r\r     * -o: pass compiler options to the C compiler\r\r     * -i: the compilation will use an additional external C include file\r\r     * -d: determine the directory where BaCon should store the generated C\r       files. Default value is the current directory\r\r     * -x: extract gettext strings from generated c sources\r\r     * -f: create a shared object of the program\r\r     * -n: do not compile the C code automatically after conversion\r\r     * -j: invoke C preprocessor to interpret C macros which were added to\r       BaCon source code\r\r     * -p: do not cleanup the generated C files. Default behavior is to\r       delete all generated C files automatically\r\r     * -b: use bacon in the 'shebang' so BaCon programs can be executed\r       similar to a script (binary version of BaCon only)\r\r     * -w: store commandline settings in a configurationfile. This file\r       will be used in subsequent invocations of BaCon (not applicable for\r       the GUI version)\r\r     * -v: shows the current version of BaCon\r\r     * -h: shows an overview of all possible options on the prompt. Same as\r       the '-?' parameter\r\r   So how to pass compiler and linker flags to the C compiler? Here are a\r   few examples.\r\r     * Convert and compile program with debug symbols: ./bacon -o -g\r       yourprogram.bac\r\r     * Convert and compile program , optimize and strip: ./bacon -o -O2 -o\r       -s yourprogram.bac\r\r     * Convert and compile program and export functions as symbols: ./bacon\r       -o -export-dynamic yourprogram.bac\r\r     * Convert and compile program using TCC and export functions as\r       symbols: ./bacon -c tcc -o -rdynamic yourprogram.bac\r\r     * Convert and compile program forcing 32bit and optimize for current\r       platform: ./bacon -o -m32 -o -mtune=native yourprogram.bac\r\r     * Convert and compile program linking to a particular library: ./bacon\r       -l somelib yourprogram.bac\r\r     * Convert and compile program including an additional C header file:\r       ./bacon -i header.h yourprogram.bac
\ No newline at end of file
diff --git a/関数・命令/ABS.txt b/関数・命令/ABS.txt
new file mode 100644 (file)
index 0000000..e1d66cf
--- /dev/null
@@ -0,0 +1 @@
+  ABS\r\r   ABS(<x>)\r\r   Type: function\r\r   <x> の絶対値を返します。\r   ABS がある場合・ない場合の例:\r\r   PRINT PI\r   PRINT ABS(PI)\r
\ No newline at end of file
diff --git a/関数・命令/ACOS.txt b/関数・命令/ACOS.txt
new file mode 100644 (file)
index 0000000..371d7db
--- /dev/null
@@ -0,0 +1 @@
+  ACOS\r\r  【2.0 追加】\r   ACOS(<x>)\r\r   Type: function\r\r   <x> の計算された弧コサインを返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/ADDRESS.txt b/関数・命令/ADDRESS.txt
new file mode 100644 (file)
index 0000000..c28fade
--- /dev/null
@@ -0,0 +1 @@
+  ADDRESS\r\r   ADDRESS(<x>)\r\r   Type: function\r\r   変数または機能のメモリアドレスを返します。 インポートされた C function へのポインターを渡すとき、ADDRESS 機能を使う事ができます。(IMPORT 参照)\r\r
\ No newline at end of file
diff --git a/関数・命令/ALARM.txt b/関数・命令/ALARM.txt
new file mode 100644 (file)
index 0000000..0f941be
--- /dev/null
@@ -0,0 +1 @@
+  ALARM\r\r  【1.0 build 12】\r   ALARM <sub>, <time>\r\r   Type: statement\r\r   <time> ミリ秒に実行される <sub> をセットします。\r   <time> に 0 を使用した場合は ALARM 機能をキャンセルします。\r   ALARM は BaCon が現在実行しているどんな行動でも中断します。\r   ALARM は常に優先権があります。\r   例:\r\r   SUB dinner\r       PRINT "Dinner time!"\r   END SUB\r   ALARM dinner, 5000\r\r
\ No newline at end of file
diff --git a/関数・命令/ALIAS.txt b/関数・命令/ALIAS.txt
new file mode 100644 (file)
index 0000000..fbd918e
--- /dev/null
@@ -0,0 +1 @@
+  ALIAS\r\r  【1.0 build 14】\r   ALIAS <function> TO <alias>\r\r   Type: statement\r\r   既存の機能またはインポートされた機能に別名を定めます。\r   ALIAS は、statement または operator のために作る事はできません。例:\r\r   ALIAS "DEC" TO "ConvertToDecimal"\r   PRINT ConvertToDecimal("AB1E")\r\r
\ No newline at end of file
diff --git a/関数・命令/AND.txt b/関数・命令/AND.txt
new file mode 100644 (file)
index 0000000..ce3f0a8
--- /dev/null
@@ -0,0 +1 @@
+  AND\r\r  【1.0 build 29 追加 - &】\r   <x> AND <y>\r\r   Type: operator\r\r   <x> と <y> の論理積を返します。「and」の代わりに記号「&」を使う事もできます。\r   例:\r\r   IF x = 0 AND y = 1 THEN PRINT "Hello"\r\r
\ No newline at end of file
diff --git a/関数・命令/ARGUMENT$.txt b/関数・命令/ARGUMENT$.txt
new file mode 100644 (file)
index 0000000..bd6cd32
--- /dev/null
@@ -0,0 +1 @@
+  ARGUMENT$\r\r   ARGUMENT$\r\r   Type: variable\r\r   プログラムの名前とプログラムに対する引数を阻止している予約の変数です。\r   これらすべてはスペースで区切られます。\r\r
\ No newline at end of file
diff --git a/関数・命令/ASC.txt b/関数・命令/ASC.txt
new file mode 100644 (file)
index 0000000..0690696
--- /dev/null
@@ -0,0 +1 @@
+  ASC\r\r   ASC(<char>)\r\r   Type: function\r\r   アスキー文字(半角文字)をコードに変えます。 (CHR$ の逆) \r   例:\r\r   PRINT ASC("x")\r\r
\ No newline at end of file
diff --git a/関数・命令/ASIN.txt b/関数・命令/ASIN.txt
new file mode 100644 (file)
index 0000000..3979dda
--- /dev/null
@@ -0,0 +1 @@
+  ASIN\r\r  【2.0 追加】\r   ASIN(<x>)\r\r   Type: function\r\r   <x> のアークサイン(arcsine)を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/ATN.txt b/関数・命令/ATN.txt
new file mode 100644 (file)
index 0000000..ed55def
--- /dev/null
@@ -0,0 +1 @@
+  ATN\r\r   ATN(<x>)\r\r   Type: function\r\r   <x> のアークタンジェント(arctangent)を返します。\r\r   PRINT ATN(1)\r\r
\ No newline at end of file
diff --git a/関数・命令/BREAK.txt b/関数・命令/BREAK.txt
new file mode 100644 (file)
index 0000000..a00739b
--- /dev/null
@@ -0,0 +1 @@
+  BREAK\r\r   BREAK [<x>]\r\r   Type: statement\r\r   FOR・NEXT、WHILE・WEND、REPEAT・UNTIL のループから抜けます。\r\r   <x> の値を指定する事で入れ子になっているループをいくつ抜けるかを指定できます。\r   1 以上の値でなければいけません。CONTINUE を用いてループを再開する事もできます。\r\r
\ No newline at end of file
diff --git a/関数・命令/CALL.txt b/関数・命令/CALL.txt
new file mode 100644 (file)
index 0000000..a6c3aa4
--- /dev/null
@@ -0,0 +1 @@
+  CALL\r\r   CALL <sub name> [TO <var>]\r\r   Type: statement\r\r   <sub name> がある場合、プログラムの終了後に <sub name> ラベルのサブルーチンを呼び出します。 With the optional TO also a function can be invoked which stores the result value in <var>.\r\r   Example:\r\r   CALL fh2cel(72) TO celsius\r   PRINT celsius\r\r
\ No newline at end of file
diff --git a/関数・命令/CATCH.txt b/関数・命令/CATCH.txt
new file mode 100644 (file)
index 0000000..0f704ab
--- /dev/null
@@ -0,0 +1 @@
+  CATCH\r\r   CATCH GOTO <label> | RESET\r\r   Type: statement\r\r   エラーが発生した時に <label> へ飛ばします。\r   例として RESUME を参照して下さい。\r   CATCH RESET で初期のエラーメッセージ表示へ戻します。\r\r
\ No newline at end of file
diff --git a/関数・命令/CHANGEDIR.txt b/関数・命令/CHANGEDIR.txt
new file mode 100644 (file)
index 0000000..b3e731f
--- /dev/null
@@ -0,0 +1 @@
+  CHANGEDIR\r\r   CHANGEDIR <directory>\r\r   Type: statement\r\r   カレントディレクトリを変更します。例:\r\r   CHANGEDIR "/tmp/mydir"\r\r
\ No newline at end of file
diff --git a/関数・命令/CHOP$.txt b/関数・命令/CHOP$.txt
new file mode 100644 (file)
index 0000000..969322d
--- /dev/null
@@ -0,0 +1 @@
+  CHOP$\r\r   CHOP$(<x$>[, <y$>[, <z>]])\r\r   Type: function\r\r   <x$> の前後に含まれている CR・LF・タブ・空白 を削除します。\r   <y$> を指定する事で削除する文字を指定できます。\r   <z> で削除範囲を決められます。0 で左右、1 で左、2 で右 です。\r   例:\r\r   PRINT CHOP$("bacon", "bn")\r   PRINT CHOP$(" hello world ", " ", 2)\r\r
\ No newline at end of file
diff --git a/関数・命令/CHR$.txt b/関数・命令/CHR$.txt
new file mode 100644 (file)
index 0000000..b348d49
--- /dev/null
@@ -0,0 +1 @@
+  CHR$\r\r   CHR$(<x>)\r\r   Type: function\r\r   アスキー番号 <x> に属している文字を返します。ASC と逆の機能です。\r   <x> の値は 0~255 です。\r\r   LET a$ = CHR$(0x23)\r   PRINT a$\r\r
\ No newline at end of file
diff --git a/関数・命令/CLEAR.txt b/関数・命令/CLEAR.txt
new file mode 100644 (file)
index 0000000..1e1b22e
--- /dev/null
@@ -0,0 +1 @@
+  CLEAR\r\r   CLEAR\r\r   Type: statement\r\r   ターミナル画面を文字を消します。ANSI 対応ターミナルで使う事ができます。\r\r
\ No newline at end of file
diff --git a/関数・命令/CLOSE.txt b/関数・命令/CLOSE.txt
new file mode 100644 (file)
index 0000000..39b9ce7
--- /dev/null
@@ -0,0 +1 @@
+  CLOSE\r\r   CLOSE FILE|DIRECTORY|NETWORK|SERVER|MEMORY <handle>\r\r   Type: statement\r\r   OPEN で開いていた <handle> を閉じます。\r   例:\r\r   CLOSE FILE myfile\r\r
\ No newline at end of file
diff --git a/関数・命令/COLOR.txt b/関数・命令/COLOR.txt
new file mode 100644 (file)
index 0000000..e179ee5
--- /dev/null
@@ -0,0 +1 @@
+  COLOR\r\r   COLOR <BG|FG> TO <BLACK|RED|GREEN|YELLOW|BLUE|MAGENTA|CYAN|WHITE>\r   COLOR <NORMAL|INTENSE|INVERSE|RESET>\r\r   Type: statement\r\r   ターミナル画面の色を設定します。\r   FG で文字色、BG で背景色を設定します。\r   ANSI 互換ターミナルで有効です。\r   例:\r\r   COLOR FG TO GREEN\r   PRINT "This is green!"\r   COLOR RESET\r\r   色は名前の代わりに数値でも設定できます。\r   0 = BLACK、1 = RED、2 = GREEN、3 = YELLOW、4 = BLUE、\r   5 = MAGENTA、6 = CYAN、7 = WHITE\r   例:\r\r   COLOR 1 TO 3\r   PRINT "This is yellow!"\r   COLOR RESET\r\r
\ No newline at end of file
diff --git a/関数・命令/COLUMNS.txt b/関数・命令/COLUMNS.txt
new file mode 100644 (file)
index 0000000..f0ffe7c
--- /dev/null
@@ -0,0 +1 @@
+  COLUMNS\r\r  【1.0 build 13 追加】\r   COLUMNS\r\r   Type: function\r\r   ANSI 対応ターミナルの横座標を返します。ROWS 参照。例:\r\r   PRINT "X,Y: ", COLUMNS, "," , ROWS\r\r
\ No newline at end of file
diff --git a/関数・命令/CONCAT$.txt b/関数・命令/CONCAT$.txt
new file mode 100644 (file)
index 0000000..568e475
--- /dev/null
@@ -0,0 +1 @@
+  CONCAT$\r\r   CONCAT$(<x$>, <y$>, ...)\r\r   Type: function\r\r   文字列を結合します。\r   例:\r\r   txt$ = CONCAT$("Help this is ", name$, " carrying a strange ", thing$)\r\r   CONCAT$ を使う代わりに & を使って結合させる事もできます。\r   & を使って同じ結果を得る例:\r\r   txt$ = "Help this is " & name$ & " carrying a strange " & thing$\r\r
\ No newline at end of file
diff --git a/関数・命令/CONST.txt b/関数・命令/CONST.txt
new file mode 100644 (file)
index 0000000..11bb432
--- /dev/null
@@ -0,0 +1 @@
+  CONST\r\r   CONST <var> = <value> | <expr>\r\r   Type: statement\r\r   実行中変更する事ができない値を定めます。\r   CONST で割り当てた値はグローバルで参照できます。\r   例:\r\r   CONST WinSize = 100\r   CONST Screen = WinSize * 10 + 5\r\r
\ No newline at end of file
diff --git a/関数・命令/CONTINUE.txt b/関数・命令/CONTINUE.txt
new file mode 100644 (file)
index 0000000..bd9c8d2
--- /dev/null
@@ -0,0 +1 @@
+  CONTINUE\r\r  【1.0 build 20 追加】\r   CONTINUE [<x>]\r\r   Type: statement\r\r   FOR・NEXT WHILE・WEND REPEAT・UNTIL 内の制御を飛ばし、\r   ループの頭から再開させます。\r\r   <x> によって再開されるループの数を指定できます。\r\r
\ No newline at end of file
diff --git a/関数・命令/COPY.txt b/関数・命令/COPY.txt
new file mode 100644 (file)
index 0000000..73dcc2c
--- /dev/null
@@ -0,0 +1 @@
+  COPY\r\r   COPY <file> TO <newfile>\r\r   Type: statement\r\r   <file> を <newfile> へ複製します。\r   例:\r\r   COPY "file.txt" TO "/tmp/new.txt"\r\r
\ No newline at end of file
diff --git a/関数・命令/COS.txt b/関数・命令/COS.txt
new file mode 100644 (file)
index 0000000..49080e6
--- /dev/null
@@ -0,0 +1 @@
+  COS\r\r   COS(<x>)\r\r   Type: function\r\r   <x> のコサイン値(cosinus)を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/CURDIR$.txt b/関数・命令/CURDIR$.txt
new file mode 100644 (file)
index 0000000..db5b74a
--- /dev/null
@@ -0,0 +1 @@
+  CURDIR$\r\r   CURDIR$\r\r   Type: function\r\r   カレントディレクトリをフルパスで返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/CURSOR.txt b/関数・命令/CURSOR.txt
new file mode 100644 (file)
index 0000000..618993f
--- /dev/null
@@ -0,0 +1 @@
+  CURSOR\r\r  【1.0 build 13 追加 - CURSOR ON|OFF】\r   CURSOR <ON|OFF> | <FORWARD|BACK|UP|DOWN> [<x>]\r\r   Type: statement\r\r   CURSOR ON でカーソルを表示、CURSON OFF でカーソルを非表示にします。\r   CURSOR FORWARD で下に移動、BACK で上に移動、\r   UP で左に移動、DOWN で右に移動します。\r   <x> で移動量を指定できます。ない場合は 1 移動します。\r   ANSI 互換ターミナルで有効です。\r   例:\r\r   PRINT "I am here"\r   CURSOR DOWN 2\r   PRINT "...now I am here"\r\r
\ No newline at end of file
diff --git a/関数・命令/DATA.txt b/関数・命令/DATA.txt
new file mode 100644 (file)
index 0000000..84e32f9
--- /dev/null
@@ -0,0 +1 @@
+  DATA\r\r   DATA <x>[, <y>][, <z>][, ...]\r\r   Type: statement\r\r   データを定義します。DATA の値は常にグローバルで見られるデータになります。\r   READ でデータを読み出す事ができます。\r   すべてのデータが読まれた場合、数値は 0、文字列では空を返します。\r   読み出し開始位置を RESOTRE で定める事ができます。\r   例:\r\r   DATA 1, 2, 3, 4, 5, 6\r   DATA 0.5, 0.7, 11, 0.15\r   DATA 1, "one", 2, "two", 3, "three", 4, "four"\r\r
\ No newline at end of file
diff --git a/関数・命令/DAY.txt b/関数・命令/DAY.txt
new file mode 100644 (file)
index 0000000..28230f1
--- /dev/null
@@ -0,0 +1 @@
+  DAY\r\r   DAY(<x>)\r\r   Type: function\r\r   秒の値を返します。<x> の値は 1970年1月1日 0:00:00 からの秒数です。\r   例:\r\r   PRINT DAY(NOW)\r\r
\ No newline at end of file
diff --git a/関数・命令/DEC.txt b/関数・命令/DEC.txt
new file mode 100644 (file)
index 0000000..02ef2e7
--- /dev/null
@@ -0,0 +1 @@
+  DEC\r\r   DEC(<x>)\r\r   Type: function\r\r   <x> の 10 進数を返します。<x> は文字列として渡す必要があります。\r   Example:\r\r   PRINT DEC("AB1E")\r\r
\ No newline at end of file
diff --git a/関数・命令/DECLARE.txt b/関数・命令/DECLARE.txt
new file mode 100644 (file)
index 0000000..0190f26
--- /dev/null
@@ -0,0 +1 @@
+  DECLARE\r\r  【1.0 build 10 追加】\r   DECLARE <var>[,<var2>][,<var3>][,...] TYPE|ASSOC <c-type> | [ARRAY <size>]\r\r   Type: statement\r\r   GLOBAL の代わりに使用できます。互換性目的に使用する事が可能です。\r\r
\ No newline at end of file
diff --git a/関数・命令/DECR.txt b/関数・命令/DECR.txt
new file mode 100644 (file)
index 0000000..41ffe0e
--- /dev/null
@@ -0,0 +1 @@
+  DECR\r\r  【1.0 build 11 追加】\r   DECR <x>[, <y>]\r\r   Type: statement\r\r   数値 <x> の変数を減少させます。減少量は <y> で指定します。\r   指定がない場合は 1 減少します。\r   例:\r\r   x = 10\r   DECR x\r   PRINT x\r   DECR x, 3\r   PRINT x\r\r
\ No newline at end of file
diff --git a/関数・命令/DEF FN.txt b/関数・命令/DEF FN.txt
new file mode 100644 (file)
index 0000000..9ed36a6
--- /dev/null
@@ -0,0 +1 @@
+  DEF FN\r\r   DEF FN <label> [(args)] = <value> | <expr>\r\r   Type: statement\r\r   値または命令にラベルを付けます。\r   例:\r\r   DEF FN func(x) = 3 * x\r   PRINT func(12)\r\r   DEF FN First$(x$) = LEFT$(x$, INSTR(x$, " ")-1)\r   PRINT First$("One Two Three")\r\r
\ No newline at end of file
diff --git a/関数・命令/DELETE.txt b/関数・命令/DELETE.txt
new file mode 100644 (file)
index 0000000..63b7c91
--- /dev/null
@@ -0,0 +1 @@
+  DELETE\r\r  【2.0 追加 - DELETE RECURSIVE】\r   DELETE <FILE|DIRECTORY|RECURSIVE> <x$>\r\r   Type: statement\r\r   DELETE FILE でファイルを削除します。\r   DELELE DIRECTORY でディレクトリを削除します。\r   DELELE RECURSIVE で指定されたディレクトリと中にあるファイル全てを削除します。\r   エラーが生じた場合は CATCH を使う事ができます。\r   Example:\r\r   DELETE FILE "/tmp/data.txt"\r   DELETE RECURSIVE "/usr/data/stuff"\r\r
\ No newline at end of file
diff --git a/関数・命令/END.txt b/関数・命令/END.txt
new file mode 100644 (file)
index 0000000..a8d78be
--- /dev/null
@@ -0,0 +1 @@
+  END\r\r   END [<value>]\r\r   Type: statement\r\r   プログラムを終了させます。\r   <value> を含めると <value> で記載したプログラムへシェルに戻す事ができます。\r\r
\ No newline at end of file
diff --git a/関数・命令/ENDFILE.txt b/関数・命令/ENDFILE.txt
new file mode 100644 (file)
index 0000000..9005217
--- /dev/null
@@ -0,0 +1 @@
+  ENDFILE\r\r   ENDFILE(<handle>)\r\r   Type: function\r\r   <handle> で開いたファイルが EOF(End of file)に達しているかを調べます。\r   EOF になっている場合は 1 を返し、まだなっていない場合は 0 を返します。\r   例として OPEN を参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/EPRINT.txt b/関数・命令/EPRINT.txt
new file mode 100644 (file)
index 0000000..48c0d30
--- /dev/null
@@ -0,0 +1 @@
+  EPRINT\r\r   【2.2.0 追加】\r   EPRINT [<value>] | [<text>] | [<variable>] | [<expression>] [FORMAT <format>[TO\r   <variable>[SIZE <size>]] | [,] | [;]\r\r   Type: statement\r\r   「stderror」へ出力する以外は PRINT に同じです。\r\r
\ No newline at end of file
diff --git a/関数・命令/EQ.txt b/関数・命令/EQ.txt
new file mode 100644 (file)
index 0000000..56db5ef
--- /dev/null
@@ -0,0 +1 @@
+  EQ\r\r  【1.0 追加】\r   <x> EQ <y>\r\r   Type: operator\r\r   <x> と <y> が等しいかを調べます。見やすくするために IS を使う事もできます。\r   EQ と IS は数値の比較のみに使用できます。\r   例:\r\r   IF q EQ 5 THEN\r       PRINT "q equals 5"\r   END IF\r\r   BaCon では代わりに = および == を使う事もできます。\r   NE も参照して下さい。\r\r   IF b$ = "Hello" THEN\r       PRINT "world"\r   END IF\r\r
\ No newline at end of file
diff --git a/関数・命令/EQUAL.txt b/関数・命令/EQUAL.txt
new file mode 100644 (file)
index 0000000..547b25c
--- /dev/null
@@ -0,0 +1 @@
+  EQUAL\r\r   EQUAL(<x$>, <y$>)\r\r   Type: function\r\r   <x$> と <y$> を比較し、等しいなら 1、異なるなら 0 を返します。\r   大文字と小文字の区別をしない比較に OPTION COMPARE を設定できます。\r   例:\r\r   IF EQUAL(a$, "Hello") THEN\r       PRINT "world"\r   END IF\r\r   EQUAL は互換性下記のコードと互換性を持ちます:\r\r   IF a$ = "Hello" THEN\r       PRINT "world"\r   END IF\r\r
\ No newline at end of file
diff --git a/関数・命令/ERROR.txt b/関数・命令/ERROR.txt
new file mode 100644 (file)
index 0000000..af643a8
--- /dev/null
@@ -0,0 +1 @@
+  ERROR\r\r   ERROR\r\r   Type: variable\r\r   最後のエラー番号が入っている予約変数です。\r   この変数は実行の間にリセットされる事があります。\r\r
\ No newline at end of file
diff --git a/関数・命令/ERR$.txt b/関数・命令/ERR$.txt
new file mode 100644 (file)
index 0000000..d7eb557
--- /dev/null
@@ -0,0 +1 @@
+  ERR$\r\r   ERR$(<num>)\r\r   Type: function\r\r   エラー版番号 <num> のエラーメッセージを返します。\r   例:\r\r   PRINT ERR$(ERROR)\r\r
\ No newline at end of file
diff --git a/関数・命令/EVEN.txt b/関数・命令/EVEN.txt
new file mode 100644 (file)
index 0000000..0cb2ed0
--- /dev/null
@@ -0,0 +1 @@
+  EVEN\r\r   EVEN(<x>)\r\r   Type: function\r\r   Returns 1 if x is even, else returns 0.\r\r
\ No newline at end of file
diff --git a/関数・命令/EXEC$.txt b/関数・命令/EXEC$.txt
new file mode 100644 (file)
index 0000000..a30651a
--- /dev/null
@@ -0,0 +1 @@
+  EXEC$\r\r   EXEC$(<command$> [, <stdin$>])\r\r   Type: function\r\r   システムコマンドを実行し、帰り値を得ます。\r   実行されたコマンドの帰り値は RETVAL に保存されます。\r   STDIN の代わりとして <stdin$> を設定できます。\r   システムコマンドの実行には SYSTEM もあります。\r   例:\r\r   result$ = EXEC$("ls -l")\r   result$ = EXEC$("bc", CONCAT$("123*456", NL$, "quit"))\r\r
\ No newline at end of file
diff --git a/関数・命令/EXIT.txt b/関数・命令/EXIT.txt
new file mode 100644 (file)
index 0000000..6524a36
--- /dev/null
@@ -0,0 +1 @@
+  EXIT\r\r  【1.0 build 28 追加】\r   EXIT\r\r   Type: statement\r\r   SUB・FUNCTION から抜けます。\r   FUNCTION での帰り値は 0、文字列であれば空で帰ります。\r\r   コードを見やすくするため、EXIT SUB・EXIT FUNCTION を記載する事もできます。\r\r
\ No newline at end of file
diff --git a/関数・命令/EXP.txt b/関数・命令/EXP.txt
new file mode 100644 (file)
index 0000000..5d126c3
--- /dev/null
@@ -0,0 +1 @@
+  EXP\r\r   EXP(<x>)\r\r   Type: function\r\r   <x> の e (自然対数のベース) を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/EXTRACT$.txt b/関数・命令/EXTRACT$.txt
new file mode 100644 (file)
index 0000000..5e752cc
--- /dev/null
@@ -0,0 +1 @@
+  EXTRACT$\r\r  【2.0 追加】\r   EXTRACT$(<x$>, <y$>)\r\r   Type: function\r\r   文字列 <x$> から <y4> を取り外します。\r   Example:\r\r   PRINT EXTRACT$("bacon program", "ar")\r   PRINT EXTRACT$(name$, "e")\r\r
\ No newline at end of file
diff --git a/関数・命令/FALSE.txt b/関数・命令/FALSE.txt
new file mode 100644 (file)
index 0000000..8e681df
--- /dev/null
@@ -0,0 +1 @@
+  FALSE\r\r   FALSE\r\r   Type: variable\r\r   返し値として 0 を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/FILEEXISTS.txt b/関数・命令/FILEEXISTS.txt
new file mode 100644 (file)
index 0000000..56a96db
--- /dev/null
@@ -0,0 +1 @@
+  FILEEXISTS\r\r  【1.0.9 追加】\r   FILEEXISTS(<filename>)\r\r   Type: function\r\r   ファイルが存在しているかどうかを返します。\r   ファイルが存在している時は 1、存在していない時は 0 を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/FILELEN.txt b/関数・命令/FILELEN.txt
new file mode 100644 (file)
index 0000000..1de0795
--- /dev/null
@@ -0,0 +1 @@
+  FILELEN\r\r   FILELEN(<filename>)\r\r   Type: function\r\r   <filename> で記載されたファイルのサイズを返します。\r   エラーの場合は -1 を帰り値として返します。\r   The ERR$ statement can be used to find out the error if TRAP is set to LOCAL.\r   例:\r\r   length = FILELEN("/etc/passwd")\r\r
\ No newline at end of file
diff --git a/関数・命令/FILETIME.txt b/関数・命令/FILETIME.txt
new file mode 100644 (file)
index 0000000..c537222
--- /dev/null
@@ -0,0 +1 @@
+  FILETIME\r\r  【1.0 build 25 追加】\r   FILETIME(<filename>, <type>)\r\r   Type: function\r\r   <filename> のタイムスタンプを返します。\r   <type> で呼び出すタイプスタンプの種類を設定します。\r   0 = アクセス時間・1 = 更新時間・2 = ステータス変更時間\r   例:\r\r   stamp = FILETIME("/etc/hosts", 0)\r   PRINT "Last access: ", MONTH$(stamp), " ", DAY(stamp), ", ", YEAR(stamp)\r\r
\ No newline at end of file
diff --git a/関数・命令/FILETYPE.txt b/関数・命令/FILETYPE.txt
new file mode 100644 (file)
index 0000000..66b77a0
--- /dev/null
@@ -0,0 +1 @@
+  FILETYPE\r\r   FILETYPE(<filename>)\r\r   Type: function\r\r   <filename> のファイルタイプを返します。\r   エラーの場合は 0 を返します。\r   The ERR$ statement can be used find out which error if TRAP is set to LOCAL.\r   返し値は以下のとおりです:\r\r       値       内容\r        0       エラーまたは未決定\r        1       通常のファイル\r        2       ディレクトリ(フォルダ)\r        3       文字デバイス\r        4       ブロックデバイス\r        5       ネームパイプ (FIFO) \r        6       シンボリックリンク\r        7       ソケット\r\r
\ No newline at end of file
diff --git a/関数・命令/FILL$.txt b/関数・命令/FILL$.txt
new file mode 100644 (file)
index 0000000..47fb824
--- /dev/null
@@ -0,0 +1 @@
+  FILL$\r\r   FILL$(<x>, <y>)\r\r   Type: function\r\r   <x> 文字分のアスキー番号 y の文字を返します。<y> の値は 0〜255 です。\r   例 「@」10文字を表示します:\r\r   PRINT FILL$(10, ASC("@"))\r\r
\ No newline at end of file
diff --git a/関数・命令/FLOOR.txt b/関数・命令/FLOOR.txt
new file mode 100644 (file)
index 0000000..3e8a894
--- /dev/null
@@ -0,0 +1 @@
+  FLOOR\r\r   FLOOR(<x>)\r\r   Type: function\r\r   Returns the rounded down value of x. Note that this function always\r   returns an integer value.\r\r
\ No newline at end of file
diff --git a/関数・命令/FOR.txt b/関数・命令/FOR.txt
new file mode 100644 (file)
index 0000000..b8b7fbf
--- /dev/null
@@ -0,0 +1 @@
+  FOR\r\r   FOR <var> = <x> TO <y> [STEP <z>]\r       <body>\r       [BREAK]\r   NEXT [<var>]\r\r   【2.2.0 追加】\r   FOR <var$> IN <source$> [STEP <z$>]\r       <body>\r       [BREAK]\r   NEXT [<var>]\r\r   Type: statement\r\r   FOR・NEXT で <body> 内を繰り返し処理します。\r\r   STEP が指定されていない場合は <x> から <y> まで 1 ずつ増加します。\r   増加数を変える際は STEP <z> を指定します。\r   例:\r\r   FOR x = 1 TO 10 STEP 0.5\r       PRINT x\r   NEXT\r\r   文字列の場合、STEP が指定されていない場合は空白を区切りとして\r   var$ へ呼び出します。\r   区切り文字の変更は STEP <z$> で行います。\r   例:\r\r   FOR x$ IN "Hello cruel world"\r       PRINT x$\r   NEXT\r\r   FOR y$ IN "1,2,3,4,5" STEP ","\r       PRINT y$\r   NEXT\r\r
\ No newline at end of file
diff --git a/関数・命令/FP.txt b/関数・命令/FP.txt
new file mode 100644 (file)
index 0000000..169ee1b
--- /dev/null
@@ -0,0 +1 @@
+  FP\r\r   FP (<name>)\r\r   Type: function\r\r   <name> 関数のメモリアドレスを返します。\r   例:\r\r   SUB Hello\r       PRINT "Hello world"\r   END SUB\r\r   DECLARE (*func)() TYPE void\r   func = FP(Hello)\r   CALL (*func)()\r\r
\ No newline at end of file
diff --git a/関数・命令/FREE.txt b/関数・命令/FREE.txt
new file mode 100644 (file)
index 0000000..6a75abe
--- /dev/null
@@ -0,0 +1 @@
+  FREE\r\r   FREE <x>\r\r   Type: statement\r\r   メモリを開放します。(MEMORY 参照). This statement also can be\r   used to clear members of associative arrays.\r\r
\ No newline at end of file
diff --git a/関数・命令/FUNCTION.txt b/関数・命令/FUNCTION.txt
new file mode 100644 (file)
index 0000000..de3a44d
--- /dev/null
@@ -0,0 +1 @@
+  FUNCTION\r\r   FUNCTION <name> (<STRING <s> | NUMBER <i> | FLOATING <f> | VAR <v> SIZE <t>)\r       <body>\r       RETURN <x>\r   ENDFUNCTION | END FUNCTION\r\r   Type: statement\r\r   関数を定めます。LOCAL で設定されない場合、この関数はグローバル関数となり、\r   広域で使用できる状態になります。\r   STRING・NUMBER・FLOATING 以外に C 言語の型も指定できます。\r\r   FUNCTION は常に RETURN 文で値または文字列を返します。\r   FUNCTION が文字列を返す場合、<name> に $ を後ろに付けます。\r   例:\r\r   FUNCTION fh2cel(NUMBER fahrenheit)\r       LOCAL celsius\r       celsius = fahrenheit*9/5 + 32\r       RETURN celsius\r   END FUNCTION\r\r   FUNCTION Hello$(STRING name$)\r       RETURN "Hello " & name$ & " !"\r   END FUNCTION\r\r
\ No newline at end of file
diff --git a/関数・命令/GETBYTE.txt b/関数・命令/GETBYTE.txt
new file mode 100644 (file)
index 0000000..df6b93a
--- /dev/null
@@ -0,0 +1 @@
+  GETBYTE\r\r   GETBYTE <memory> FROM <handle> [SIZE <size>]\r\r   Type: statement\r\r   <handle> で開いたファイルからバイナリデータを取り出し、<memory> へ入れます。\r   SIZE <size> でサイズを設定できます。OPTION MEMTYPE で単位が指定できます。\r   書き込みは PUTBYTE を用います。\r   例: \r\r   OPEN prog$ FOR READING AS myfile\r       bin = MEMORY(100)\r       GETBYTE bin FROM myfile SIZE 100\r   CLOSE FILE myfile\r\r
\ No newline at end of file
diff --git a/関数・命令/GETENVIRON$.txt b/関数・命令/GETENVIRON$.txt
new file mode 100644 (file)
index 0000000..1449942
--- /dev/null
@@ -0,0 +1 @@
+  GETENVIRON$\r\r   GETENVIRON$(<var$>)\r\r   Type: function\r\r   環境変数 <var$> に入っている値を返します。値が入っていない場合はヌルの文字列を返します。\r   SETENVIRON によって環境変数に値を入れる事ができます。\r\r
\ No newline at end of file
diff --git a/関数・命令/GETFILE.txt b/関数・命令/GETFILE.txt
new file mode 100644 (file)
index 0000000..703bb1a
--- /dev/null
@@ -0,0 +1 @@
+  GETFILE\r\r   GETFILE <var> FROM <handle>\r\r   Type: statement\r\r   <handle> で開いたディレクトリからファイルを得ます。\r   読む毎にファイルを返します。\r   ファイルを全て読んだ場合は空を返します。\r   OPEN で開きます。\r\r
\ No newline at end of file
diff --git a/関数・命令/GETKEY.txt b/関数・命令/GETKEY.txt
new file mode 100644 (file)
index 0000000..f4c89fd
--- /dev/null
@@ -0,0 +1 @@
+  GETKEY\r\r   GETKEY\r\r   Type: function\r\r   キー入力を待ち、入力されたキーを得ます。\r   INPUT とは異なり enter・return を待たずに1文字を得ます。\r   INPUT・WAIT も参照して下さい。\r   例:\r\r   PRINT "Press <escape> to exit now..."\r   key = GETKEY\r   IF key = 27 THEN\r       END\r   END IF\r\r
\ No newline at end of file
diff --git a/関数・命令/GETLINE.txt b/関数・命令/GETLINE.txt
new file mode 100644 (file)
index 0000000..1f4ade7
--- /dev/null
@@ -0,0 +1 @@
+  GETLINE\r\r   GETLINE <var> FROM <handle>\r\r   Type: statement\r\r   <handle> で開いたメモリ領域から1行取り出します。\r   メモリ領域は OPEN で開いたストリーミングモードでなければいけません。\r   テキストは次の改行位置まで読まれます。\r   例:\r\r   GETLINE txt$ FROM mymemory\r\r   See also PUTLINE to store lines of text into memory areas.\r\r
\ No newline at end of file
diff --git a/関数・命令/GETPEER$.txt b/関数・命令/GETPEER$.txt
new file mode 100644 (file)
index 0000000..3b8bea7
--- /dev/null
@@ -0,0 +1 @@
+  GETPEER$\r\r  【1.0 build 29 追加】\r   GETPEER$(<handle>)\r\r   Type: function\r\r   OPEN FOR SERVER で開いた <handle> の IP アドレス および ポート を得ます。\r   例:\r\r   OPEN "localhost:51000" FOR SERVER AS mynet\r   PRINT "Peer is: ", GETPEER$(mynet)\r   CLOSE SERVER mynet\r\r
\ No newline at end of file
diff --git a/関数・命令/GETX.txt b/関数・命令/GETX.txt
new file mode 100644 (file)
index 0000000..95da0fd
--- /dev/null
@@ -0,0 +1 @@
+  GETX\r\r  【1.0 build 13 追加】\r   GETX\r\r   Type: function\r\r   カーソルの横座標を返します。 ANSI 対応ターミナルが必要です。カーソル位置を設定するために GOTO を参照して下さい。\r
\ No newline at end of file
diff --git a/関数・命令/GETY.txt b/関数・命令/GETY.txt
new file mode 100644 (file)
index 0000000..f65d549
--- /dev/null
@@ -0,0 +1 @@
+  GETY\r\r  【1.0 build 13 追加】\r   GETY\r\r   Type: function\r\r   カーソルの縦座標を返します。 ANSI 対応ターミナルが必要です。カーソル位置を設定するために GOTO を参照して下さい。\r
\ No newline at end of file
diff --git a/関数・命令/GLOBAL.txt b/関数・命令/GLOBAL.txt
new file mode 100644 (file)
index 0000000..aecde05
--- /dev/null
@@ -0,0 +1 @@
+  GLOBAL\r\r  【1.0 build 10 追加】\r   GLOBAL <var>[,<var2>,<var3>,...] [TYPE]|ASSOC <c-type> | [ARRAY <size>]\r\r   Type: statement\r\r   Explicitly declares a variable to a C-type. The ASSOC keyword is used to\r   declare associative arrays. This is always a global declaration, meaning\r   that variables declared with the GLOBAL keyword are visible in each part\r   of the program. Use LOCAL for local declarations.\r\r   The ARRAY keyword is used to define a dynamic array, which can be\r   resized with REDIM at a later stage in the program.\r\r   Optionally, within a SUB or FUNCTION it is possible to use GLOBAL in\r   combination with RECORD to define a record variable which is visible\r   globally.\r\r   GLOBAL x TYPE float\r   GLOBAL q$\r   GLOBAL new_array TYPE float ARRAY 100\r   GLOBAL name$ ARRAY 25\r\r   Multiple variables of the same type can be declared at once, using a\r   comma separated list. In case of pointer variables the asterisk should\r   be attached to the variable name:\r\r   GLOBAL x, y, z TYPE int\r   GLOBAL *s, *t TYPE long\r\r
\ No newline at end of file
diff --git a/関数・命令/GOSUB.txt b/関数・命令/GOSUB.txt
new file mode 100644 (file)
index 0000000..11a9aae
--- /dev/null
@@ -0,0 +1 @@
+  GOSUB\r\r  【1.0 build 23 追加】\r   GOSUB <label>\r\r   Type: statement\r\r   <label> へ飛びます。LABEL を参照して下さい。\r   RETURN で戻し、GOSUB の続きを実行する事ができます。\r   SUB または FUNCTION は GOSUB の範囲を制限するものである事に注意して下さい。 \r   外に飛ばす事ができません。\r   例:\r\r   PRINT "Where are you?"\r   GOSUB there\r   PRINT "Finished."\r   END\r   LABEL there\r       PRINT "In a submarine!"\r       RETURN\r\r
\ No newline at end of file
diff --git a/関数・命令/GOTO.txt b/関数・命令/GOTO.txt
new file mode 100644 (file)
index 0000000..0fb7268
--- /dev/null
@@ -0,0 +1 @@
+  GOTO\r\r   GOTO <label>\r\r   Type: statement\r\r   <label> へ飛びます。LABEL を参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/GOTOXY.txt b/関数・命令/GOTOXY.txt
new file mode 100644 (file)
index 0000000..2a29e2e
--- /dev/null
@@ -0,0 +1 @@
+  GOTOXY\r\r   GOTOXY <x>, <y>\r\r   Type: statement\r\r   カーソル位置を設定します。左上が 1, 1 となります。ANSI 互換ターミナルが必要です。例:\r\r   CLEAR\r   FOR x = 5 TO 10\r       GOTOXY x, x\r       PRINT "Hello world"\r   NEXT\r   GOTOXY 1, 12\r\r
\ No newline at end of file
diff --git a/関数・命令/HEX$.txt b/関数・命令/HEX$.txt
new file mode 100644 (file)
index 0000000..c64acb6
--- /dev/null
@@ -0,0 +1 @@
+  HEX$\r\r   HEX$(<x>)\r\r   Type: function\r\r   <x> の 16 進数を返します。値は文字列で返ります。\r\r
\ No newline at end of file
diff --git a/関数・命令/HOST$.txt b/関数・命令/HOST$.txt
new file mode 100644 (file)
index 0000000..395d010
--- /dev/null
@@ -0,0 +1 @@
+  HOST$\r\r  【1.0 build 18 追加】\r   HOST$(<name$>)\r\r   Type: function\r\r   <name$> がホスト名を含むとき、この機能は対応する IP アドレスを返します。\r   <name$> が IP アドレスを含むならば、対応するホスト名を返します。\r   ホスト名・IP アドレスへの変換ができない場合はエラーを返します。\r   例:\r\r   PRINT HOST$("www.google.com")\r   PRINT HOST$("127.0.0.1")\r\r
\ No newline at end of file
diff --git a/関数・命令/HOUR.txt b/関数・命令/HOUR.txt
new file mode 100644 (file)
index 0000000..5e81e23
--- /dev/null
@@ -0,0 +1 @@
+  HOUR\r\r   HOUR(<x>)\r\r   Type: function\r\r   <x> の時を24時間単位(0〜23)で返します。\r   <x> は1970年1月1日 0:00:00 からの秒数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/IF.txt b/関数・命令/IF.txt
new file mode 100644 (file)
index 0000000..499c0e6
--- /dev/null
@@ -0,0 +1 @@
+  IF\r\r   IF <expression> THEN\r       <body>\r   [ELIF]\r       <body>\r   [ELSE]\r       [body]\r   ENDIF | END IF | FI\r\r   Type: statement\r\r   Execute <body> if <expression> is true. If <expression> is not true then\r   run the optional ELSE body. Multiple IF's can be written with ELIF. The\r   IF construction should end with ENDIF or END IF or FI. Example:\r\r   a = 0\r   IF a > 10 THEN\r       PRINT "This is strange:"\r       PRINT "a is bigger than 10"\r   ELSE\r       PRINT "a is smaller than 10"\r   END IF\r\r   If only one function or statement has to be executed, then the\r   if-statement also can be used without a body. For example:\r\r   IF age > 18 THEN PRINT "You are an adult"\r   ELSE INPUT "Your age: ", age\r\r   Use with care as nested IF/THEN statements using one function may\r   confuse the parser.\r\r
\ No newline at end of file
diff --git a/関数・命令/IMPORT.txt b/関数・命令/IMPORT.txt
new file mode 100644 (file)
index 0000000..482d3dc
--- /dev/null
@@ -0,0 +1 @@
+  IMPORT\r\r   IMPORT <function[(<type> <arg1>[, <type> <arg2>][, ...])]> FROM <library> TYPE\r   <type> [ALIAS word]\r\r   Type: statement\r\r   Imports a function from a C library defining the type of returnvalue.\r   Optionally, the type of arguments can be specified. Also optionally it\r   is possible to define an alias under which the imported function will be\r   known to BaCon. Examples:\r\r   IMPORT "ioctl" FROM "libc.so" TYPE int\r   IMPORT "gdk_draw_line(long, long, int, int, int, int)" FROM\r   "libgdk-x11-2.0.so" TYPE void\r   IMPORT "fork" FROM "libc.so" TYPE int ALIAS "FORK"\r   IMPORT "atan(double)" FROM "libm.so" TYPE double ALIAS "arctangens"\r\r
\ No newline at end of file
diff --git a/関数・命令/INCLUDE.txt b/関数・命令/INCLUDE.txt
new file mode 100644 (file)
index 0000000..9416735
--- /dev/null
@@ -0,0 +1 @@
+  INCLUDE\r\r   INCLUDE <filename>[, <func1>][, <func2>][, ...]\r\r   Type: statement\r\r   外部 BaCon ファイルを現在のプログラムに追加します。ネスト状の場合があります。\r   <func1>, <func2>, ... を指定すると、追加するファンクションを指定する事ができます。\r   例:\r\r   INCLUDE "beep.bac"\r   INCLUDE "hug.bac", INIT, WINDOW, DISPLAY\r\r
\ No newline at end of file
diff --git a/関数・命令/INCR.txt b/関数・命令/INCR.txt
new file mode 100644 (file)
index 0000000..1c2fdca
--- /dev/null
@@ -0,0 +1 @@
+  INCR\r\r  【1.0 build 11 追加】\r   INCR <x>[, <y>]\r\r   Type: statement\r\r   数値 <x> を増加します。\r   <y> で増加量を指定します。指定がない場合は 1 増加します。\r\r
\ No newline at end of file
diff --git a/関数・命令/INPUT.txt b/関数・命令/INPUT.txt
new file mode 100644 (file)
index 0000000..35f2c17
--- /dev/null
@@ -0,0 +1 @@
+  INPUT\r\r   INPUT [<text> [, ... ,]<variable[$]>\r\r   Type: statement\r\r   入力を求めます。 最後に $ を付ける場合は文字列の入力を求めます。\r   $ がない場合は数字の入力を求めます。\r   例:\r\r   INPUT a$\r   PRINT "You entered the following: ", a$\r\r   <text> を含める事で入力の際の文字を出力する事ができます。\r   例:\r\r   INPUT "What is your age? ", age\r   PRINT "You probably were born in ", YEAR(NOW) - age\r\r
\ No newline at end of file
diff --git a/関数・命令/INSTR.txt b/関数・命令/INSTR.txt
new file mode 100644 (file)
index 0000000..fc16c09
--- /dev/null
@@ -0,0 +1 @@
+  INSTR\r\r   INSTR(<haystack$>, <needle$> [,<start>])\r\r   Type: function\r\r   <haystack$> の中に <needle$> を検索します。\r   存在している場合最初の位置を返します。\r   <start> を設定して検索開始位置を設定できます。\r   ない場合は 0 を返します。\r\r   position = INSTR("Hello world", "wo")\r   PRINT INSTR("Don't take my wallet", "all", 10)\r\r
\ No newline at end of file
diff --git a/関数・命令/INSTRREV.txt b/関数・命令/INSTRREV.txt
new file mode 100644 (file)
index 0000000..5027c78
--- /dev/null
@@ -0,0 +1 @@
+  INSTRREV\r\r   INSTRREV(<haystack$>, <needle$> [,<start>])\r\r   Type: function\r\r   <haystack$> から <needle$> を後方から検索します。\r   <start> がある場合は後方から <start> 文字のところから検索します。\r   見つからない場合は 0 を返します。\r\r   OPTION STARTPOINT で検索場所の指定が行えます。\r\r
\ No newline at end of file
diff --git a/関数・命令/INTL$.txt b/関数・命令/INTL$.txt
new file mode 100644 (file)
index 0000000..84cd046
--- /dev/null
@@ -0,0 +1 @@
+  INTL$\r\r   INTL$(<x$>)\r\r   Type: function\r\r   Specifies that <x$> should be taken into account for\r   internationalization. All strings which are surrounded by INTL$ will be\r   candidate for the template catalog file. This file is created when BaCon\r   is executed with the '-x' switch. See also the chapter about\r   internationalization and the TEXTDOMAIN statement.\r\r
\ No newline at end of file
diff --git a/関数・命令/ISFALSE.txt b/関数・命令/ISFALSE.txt
new file mode 100644 (file)
index 0000000..5faf157
--- /dev/null
@@ -0,0 +1 @@
+  ISFALSE\r\r   ISFALSE(<x>)\r\r   Type: function\r\r   Verifies if x is equal to 0.\r\r
\ No newline at end of file
diff --git a/関数・命令/ISTRUE.txt b/関数・命令/ISTRUE.txt
new file mode 100644 (file)
index 0000000..cfe6627
--- /dev/null
@@ -0,0 +1 @@
+  ISTRUE\r\r   ISTRUE(<x>)\r\r   Type: function\r\r   Verifies if x is not equal to 0.\r\r
\ No newline at end of file
diff --git a/関数・命令/JOIN.txt b/関数・命令/JOIN.txt
new file mode 100644 (file)
index 0000000..e11198c
--- /dev/null
@@ -0,0 +1 @@
+  JOIN\r\r  【2.0 追加】\r   JOIN <array> BY <sub> TO <string> SIZE <variable>\r\r   Type: statement\r\r   分割されている配列の文字列を一つの文字列に結合します。\r   配列の文字列間は <sub> が挿入されます。\r   結果は <string> に入ります。\r   結合する数は <variable> で設定します。\r   分割には SPLIT を用います。\r   例:\r\r   DECLARE name$[3]\r   name$[0] = "King"\r   name$[1] = "of"\r   name$[2] = "Holland"\r   JOIN name$ BY " " TO result$ SIZE 3\r\r
\ No newline at end of file
diff --git a/関数・命令/LABEL.txt b/関数・命令/LABEL.txt
new file mode 100644 (file)
index 0000000..f053bb8
--- /dev/null
@@ -0,0 +1 @@
+  LABEL\r\r   LABEL <label>\r\r   Type: statement\r\r   GOTO・GOSUB・CATCH GOTO で飛んでくる先を指定します。\r   また RESTORE で以降にある DATA を読み込む際に用います。\r   <label> には空白を含めてはいけません。\r\r
\ No newline at end of file
diff --git a/関数・命令/LCASE$.txt b/関数・命令/LCASE$.txt
new file mode 100644 (file)
index 0000000..08fdf8e
--- /dev/null
@@ -0,0 +1 @@
+  LCASE$\r\r   LCASE$(<x$>)\r\r   Type: function\r\r   文字列 <x$> を小文字に変換して返します。\r   例:\r\r   PRINT LCASE$("ThIs Is All LoWeRcAsE")\r\r
\ No newline at end of file
diff --git a/関数・命令/LEFT$.txt b/関数・命令/LEFT$.txt
new file mode 100644 (file)
index 0000000..396b43a
--- /dev/null
@@ -0,0 +1 @@
+  LEFT$\r\r   LEFT$(<x$>, <y>)\r\r   Type: function\r\r   <x$> の左 <y> 文字分を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/LEN.txt b/関数・命令/LEN.txt
new file mode 100644 (file)
index 0000000..3df3776
--- /dev/null
@@ -0,0 +1 @@
+  LEN\r\r   LEN(<x$>)\r\r   Type: function\r\r   <x$> の長さを返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/LET.txt b/関数・命令/LET.txt
new file mode 100644 (file)
index 0000000..d100d2f
--- /dev/null
@@ -0,0 +1 @@
+  LET\r\r   LET <var> = <value> | <expr>\r\r   Type: statement\r\r   Assigns a value or result from an expression to a variable. LET の文字列は省略する事ができます。\r   例:\r\r   LET a = 10\r\r
\ No newline at end of file
diff --git a/関数・命令/LOCAL.txt b/関数・命令/LOCAL.txt
new file mode 100644 (file)
index 0000000..70ea4c6
--- /dev/null
@@ -0,0 +1 @@
+  LOCAL\r\r   LOCAL <var>[,<var2>][,<var3>][,...] [TYPE <c-type>] [ARRAY <size>]\r\r   Type: statement\r\r   This statement only has sense within functions, subroutines or records.\r   It defines a local variable <var> with C type <type> which will not be\r   visible for other functions, subroutines or records, nor for the main\r   program.\r\r   If the TYPE keyword is omitted then variables are assumed to be of\r   'long' type. If TYPE is omitted and the variablename ends with a '$'\r   then the variable will be a string.\r\r   The ARRAY keyword is used to define a dynamic array, which can be\r   resized with REDIM at a later stage in the program.\r\r   Example:\r\r   LOCAL tt TYPE int\r   LOCAL q$\r   LOCAL new_array TYPE float ARRAY 100\r   LOCAL name$ ARRAY 25\r\r   Multiple variables of the same type can be declared at once, using a\r   comma separated list. In case of pointer variables the asterisk should\r   be attached to the variable name:\r\r   LOCAL x, y, z TYPE int\r   LOCAL *s, *t TYPE long\r\r
\ No newline at end of file
diff --git a/関数・命令/LOG.txt b/関数・命令/LOG.txt
new file mode 100644 (file)
index 0000000..eb12dcb
--- /dev/null
@@ -0,0 +1 @@
+  LOG\r\r   LOG(<x>)\r\r   Type: function\r\r   Returns the natural logarithm of <x>.\r\r
\ No newline at end of file
diff --git a/関数・命令/LOOKUP.txt b/関数・命令/LOOKUP.txt
new file mode 100644 (file)
index 0000000..6875caf
--- /dev/null
@@ -0,0 +1 @@
+  LOOKUP\r\r  【1.0 build 15 追加】\r   LOOKUP <assoc> TO <array> SIZE <variable>\r\r   Type: statement\r\r   Retrieves all indexnames created in an associative array. The results\r   are stored in <array>. As it sometimes is unknown how many elements this\r   resulting array will contain, the array should not be declared\r   explicitly. Instead, LOOKUP will declare the result array dynamically.\r\r   If LOOKUP is being used in a function or sub, then <array> will have a\r   local scope. Else <array> will be visible globally, and can be accessed\r   within all functions and subs.\r\r   The total amount of elements created in this array is stored in\r   <variable>. This variable can be declared explicitly using LOCAL or\r   GLOBAL. Example:\r\r   LOOKUP mortal TO men$ SIZE amount\r   FOR x = 0 TO amount - 1\r       PRINT men$[x]\r   NEXT\r\r
\ No newline at end of file
diff --git a/関数・命令/MAKEDIR.txt b/関数・命令/MAKEDIR.txt
new file mode 100644 (file)
index 0000000..e1f0d86
--- /dev/null
@@ -0,0 +1 @@
+  MAKEDIR\r\r   MAKEDIR <directory>\r\r   Type: statement\r\r   空のディレクトリを作ります。親ディレクトリも存在しない場合は生成されます。\r   If the directory already exists then it is recreated. Errors like write\r   permissions, disk quota issues and so on can be captured with CATCH.\r   例:\r\r   MAKEDIR "/tmp/mydir/is/here"\r\r
\ No newline at end of file
diff --git a/関数・命令/MAXRANDOM.txt b/関数・命令/MAXRANDOM.txt
new file mode 100644 (file)
index 0000000..f7cd177
--- /dev/null
@@ -0,0 +1 @@
+  MAXRANDOM\r\r   MAXRANDOM\r\r   Type: variable\r\r   RND が生成する最大値が入ります。予約変数です。\r   実際の値は OS によって異なるかもしれません。\r
\ No newline at end of file
diff --git a/関数・命令/MEMCHECK.txt b/関数・命令/MEMCHECK.txt
new file mode 100644 (file)
index 0000000..995e55f
--- /dev/null
@@ -0,0 +1 @@
+  MEMCHECK\r\r  【2.0 追加】\r   MEMCHECK(<memory address>)\r\r   Type: function\r\r   Verifies if <memory address> is accessible, in which case a '1' is\r   returned. If not, this function returns a '0'. Example:\r\r   IF MEMCHECK(mem) THEN POKE mem, 1234\r\r
\ No newline at end of file
diff --git a/関数・命令/MEMORY.txt b/関数・命令/MEMORY.txt
new file mode 100644 (file)
index 0000000..ffb1d63
--- /dev/null
@@ -0,0 +1 @@
+  MEMORY\r\r   MEMORY(<x>)\r\r   Type: function\r\r   Claims memory of x size, returning a handle to the address where the\r   memory block resides. Use FREE to release the memory. Note that OPTION\r   MEMTYPE can influence the type of memory created. Example creating a\r   memory area to store integers:\r\r   OPTION MEMTYPE int\r   area = MEMORY(100)\r\r
\ No newline at end of file
diff --git a/関数・命令/MEMREWIND.txt b/関数・命令/MEMREWIND.txt
new file mode 100644 (file)
index 0000000..960a777
--- /dev/null
@@ -0,0 +1 @@
+  MEMREWIND\r\r   MEMREWIND <handle>\r\r   Type: statement\r\r   Returns to the beginning of a memory area opened with <handle>.\r\r
\ No newline at end of file
diff --git a/関数・命令/MEMTELL.txt b/関数・命令/MEMTELL.txt
new file mode 100644 (file)
index 0000000..a65db2e
--- /dev/null
@@ -0,0 +1 @@
+  MEMTELL\r\r  【1.0.8 追加】\r   MEMTELL(handle)\r\r   Type: function\r\r   Returns the current position in the memory area opened with <handle>.\r\r
\ No newline at end of file
diff --git a/関数・命令/MID$.txt b/関数・命令/MID$.txt
new file mode 100644 (file)
index 0000000..43c7087
--- /dev/null
@@ -0,0 +1 @@
+  MID$\r\r   MID$(<x$>, <y>[, <z>])\r\r   Type: function\r\r   <x$> を <y> 文字から <z> 文字分返します。<z> を省略した場合は <y> 文字以降全てを返します。\r   例:\r\r   txt$ = "Hello cruel world"\r   PRINT MID$(txt$, 7, 5)\r\r
\ No newline at end of file
diff --git a/関数・命令/MINUTE.txt b/関数・命令/MINUTE.txt
new file mode 100644 (file)
index 0000000..20c33dc
--- /dev/null
@@ -0,0 +1 @@
+  MINUTE\r\r   MINUTE(x)\r\r   Type: function\r\r   x の秒(0〜59)を返します。x は 1970年1月1日 0:00:00 からの秒数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/MOD.txt b/関数・命令/MOD.txt
new file mode 100644 (file)
index 0000000..34c9a9e
--- /dev/null
@@ -0,0 +1 @@
+  MOD\r\r   MOD(<x>, <y>)\r\r   Type: function\r\r   <x>÷<y> の余りを返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/MONTH.txt b/関数・命令/MONTH.txt
new file mode 100644 (file)
index 0000000..205a09c
--- /dev/null
@@ -0,0 +1 @@
+  MONTH\r\r   MONTH(<x>)\r\r   Type: function\r\r   月(1〜12)を返します。<x> は1970年1月1日 0:00:00 からの秒数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/MONTH$.txt b/関数・命令/MONTH$.txt
new file mode 100644 (file)
index 0000000..1f3be9a
--- /dev/null
@@ -0,0 +1 @@
+  MONTH$\r\r   MONTH$(<x>)\r\r   Type: function\r\r   月をシステムの LOCALE に合わせた文字列で返します。\r   (LOCALE が C なら "January" "February" など)\r   <x> は 1970年1月1日 0:00:00 からの秒数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/NE.txt b/関数・命令/NE.txt
new file mode 100644 (file)
index 0000000..1b37b95
--- /dev/null
@@ -0,0 +1 @@
+  NE\r\r  【1.0 追加】\r   <x> NE <y>\r\r   Type: operator\r\r   Checks if x and y are not equal. Instead, ISNOT can be used as well to\r   improve code readability. The NE and ISNOT operators only work for\r   numerical comparisons.\r\r   Next to these, BaCon also accepts the '!=' and '<>' constructs for\r   comparison. These work both for numerical and string comparisons. See\r   also EQ.\r\r
\ No newline at end of file
diff --git a/関数・命令/NL$.txt b/関数・命令/NL$.txt
new file mode 100644 (file)
index 0000000..fc5a1b4
--- /dev/null
@@ -0,0 +1 @@
+  NL$\r\r   NL$\r\r   Type: variable\r\r   改行の文字を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/NNTL$.txt b/関数・命令/NNTL$.txt
new file mode 100644 (file)
index 0000000..dd2aec7
--- /dev/null
@@ -0,0 +1 @@
+  NNTL$\r\r  【1.0 build 22 追加】\r   NNTL$(<x$>, <y$>, <value>)\r\r   Type: function\r\r   Specifies that <x$> should be taken into account for\r   internationalization. This is a variation to INTL$. With NNTL$\r   singularities and multitudes can be specified, which are candidate for\r   the template catalog file. This file is created when BaCon is executed\r   with the '-x' switch. See also TEXTDOMAIN and INTL$ and the chapter on\r   internationalization. Example:\r\r   LET x = 2\r   PRINT x FORMAT NNTL$("There is %ld green bottle\n", "There are %ld green\r   bottles\n", x)\r\r
\ No newline at end of file
diff --git a/関数・命令/NOT.txt b/関数・命令/NOT.txt
new file mode 100644 (file)
index 0000000..63128b3
--- /dev/null
@@ -0,0 +1 @@
+  NOT\r\r   NOT(<x>)\r\r   Type: function\r\r   <x> の(論理値)否定を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/NOW.txt b/関数・命令/NOW.txt
new file mode 100644 (file)
index 0000000..0783d1c
--- /dev/null
@@ -0,0 +1 @@
+  NOW\r\r   NOW\r\r   Type: function\r\r   現在の時間を1970年1月1日以降の秒数で返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/ODD.txt b/関数・命令/ODD.txt
new file mode 100644 (file)
index 0000000..abffceb
--- /dev/null
@@ -0,0 +1 @@
+  ODD\r\r   ODD(<x>)\r\r   Type: Function\r\r   Returns 1 if x is odd, else returns 0.\r\r
\ No newline at end of file
diff --git a/関数・命令/OPEN.txt b/関数・命令/OPEN.txt
new file mode 100644 (file)
index 0000000..9aedec4
--- /dev/null
@@ -0,0 +1 @@
+  OPEN\r\r   OPEN <file|dir|address> FOR\r   READING|WRITING|APPENDING|READWRITE|DIRECTORY|NETWORK [FROM\r   address[:port]]|SERVER|MEMORY AS <handle>\r\r   Type: statement\r\r   <file> <dir> <address> を開き <handle> へ割り当てます。\r   割り当てた <handle> は READING・WRITING・APPENDING・READWRITE で使用できます。\r   REDING は読み出し専用、WRITING・APPENDING は書き込み専用、\r   READWRITE は読み書き療法を可能にします。\r   例:\r\r   OPEN "data.txt" FOR READING AS myfile\r   WHILE NOT(ENDFILE(myfile)) DO\r       READLN txt$ FROM myfile\r       IF NOT(ENDFILE(myfile)) THEN\r           PRINT txt$\r       ENDIF\r   WEND\r   CLOSE FILE myfile\r\r   DIRECTORY はディレクトリを開きます。\r   読みだすとディレクトリ内のファイルを返します。\r   例:\r\r   OPEN "." FOR DIRECTORY AS mydir\r   REPEAT\r       GETFILE myfile$ FROM mydir\r       PRINT "File found: ", myfile$\r   UNTIL ISFALSE(LEN(myfile$))\r   CLOSE DIRECTORY mydir\r\r   NWTWORK はネットアドレスを開きます。\r   オプション FORM を用いて IP アドレス・ポート番号を設定する事ができます。\r   例:\r\r   OPEN "www.google.com:80" FOR NETWORK AS mynet\r   SEND "GET / HTTP/1.1\r\nHost: www.google.com\r\n\r\n" TO mynet\r   REPEAT\r       RECEIVE dat$ FROM mynet\r       total$ = CONCAT$(total$, dat$)\r   UNTIL ISFALSE(WAIT(mynet, 500))\r   PRINT total$\r   CLOSE NETWORK mynet\r\r   SERVER は入って来るネットワーク接続を扱うサーバとして開きます。\r   同じホストと港を用いた TCP モードで複数回アクセスするとき、\r   OPEN SERVER は新しいソケットを作らず、\r   もう一つの入って来る接続に順応します。\r   IP アドレスの代わりに ワイルドカード * を用いて\r   全インターフェースを聞くのに用いることができます。\r   プロトコルの設定に OPTION NETWORK を参照して下さい。\r\r   OPEN "*:51000" FOR SERVER AS myserver\r   WHILE NOT(EQUAL(LEFT$(dat$, 4), "quit")) DO\r       RECEIVE dat$ FROM myserver\r       PRINT "Found: ", dat$\r   WEND\r   CLOSE SERVER myserver\r\r   MEMORY はメモリ領域を開いて使用することができます。\r\r   data = MEMORY(500)\r   OPEN data FOR MEMORY AS mem\r   PUTLINE "Hello cruel world" TO mem\r   MEMREWIND mem\r   GETLINE txt$ FROM mem\r   CLOSE MEMORY mem\r   PRINT txt$\r\r
\ No newline at end of file
diff --git a/関数・命令/OPTION.txt b/関数・命令/OPTION.txt
new file mode 100644 (file)
index 0000000..32c4cbf
--- /dev/null
@@ -0,0 +1 @@
+  OPTION\r\r  【1.0.7 追加 - OPTION BASE】\r  【1.0 build 11 追加 - OPTION COMPARE】\r  【1.0 build 12 追加 - OPTION SOCKET】\r  【1.0 build 26 追加 - OPTION STARTPOINT】\r   OPTION <BASE x> | <COMPARE x> | <SOCKET x> | <NETWORK type [ttl]> |\r   <MEMSTREAM x> | <MEMTYPE type> | <COLLAPSE x> | <INTERNATIONAL x> |\r   <STARTPOINT x>\r\r   Type: statement\r\r   オプション値を設定します。通常はプログラム開始時にこの設定を行います。\r\r     * BASE\r       配列の下限を設定します。デフォルトは 0 です。\r       この設定は SPLIT や LOOKUP に影響を与えます。\r       静的に値の割り当てを行う配列には影響を及ぼしません。\r\r     * REGEX\r       拡張正規表現の大文字・小文字を区別するかを設定します。\r       0 で区別する、1 で区別しないです。デフォルトは 0 です。\r\r     * SOCKET\r       ソケットが IP アドレスを取得するまでのタイムアウトを設定します。\r       デフォルトは 5 秒です。\r\r     * NETWORK\r       プトロコルの種類を設定します。\r       種類は TCP・UDP・BROADCAST・MULTICAST・SCTP です。.\r       MULTICAST が設定される場合、TTL のオプションが生かされます。\r       SCTP が設定される場合ストリーム量のオプションが生かされます。\r       デフォルトは TCP、TTL は 1、SCTP のストリーム量は 1 です。\r\r     * MEMSTREAM argument allows the handle created by the OPEN FOR\r       MEMORY statement to be used as a string variable (1). Default value\r       is 0.\r\r     * MEMTYPE\r       POKE・PEEK・MEMORY・RESIZE・PUTBYTE・GETBYTE での単位を設定します。\r       値は char・short・int・long・float・double・char* で、\r       デフォルトは char (1 バイト) です。\r\r     * COLLAPSE argument specifies if the results of the SPLIT\r       statement may contain empty results (0) in case the separator occurs\r       as a sequence in the target string, or not (1). Default value is 0.\r\r     * INTERNATIONAL argument enables support for internationalization\r       of strings. It sets the textdomain for INTL$ and NNTL$ to the\r       current filename. See also TEXTDOMAIN and the chapter on creating\r       internationalization files. The default value is 0.\r\r     * STARTPOINT argument has impact on the way the INSTRREV function\r       returns its results. When set to 1, the result of the INSTRREV\r       function is counted from the end of the string. Default value is 0\r       (counting from the beginning of the string).\r\r
\ No newline at end of file
diff --git a/関数・命令/OR.txt b/関数・命令/OR.txt
new file mode 100644 (file)
index 0000000..92401ae
--- /dev/null
@@ -0,0 +1 @@
+  OR\r\r   <x> OR <y>\r\r   Type: operator\r\r   <x> と <y> の論理和を返します。「OR」の代わりに「|」を使う事ができます。\r\r
\ No newline at end of file
diff --git a/関数・命令/OS$.txt b/関数・命令/OS$.txt
new file mode 100644 (file)
index 0000000..16f55a9
--- /dev/null
@@ -0,0 +1 @@
+  OS$\r\r   OS$\r\r   Type: function\r\r   マシン名と現在の OS 名を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/PEEK.txt b/関数・命令/PEEK.txt
new file mode 100644 (file)
index 0000000..af0baa6
--- /dev/null
@@ -0,0 +1 @@
+  PEEK\r\r   PEEK(<address>)\r\r   Type: function\r\r   メモリの <address> から値を取り出します。\r   取り出す大きさは OPTION MEMTYPE で設定します。\r\r
\ No newline at end of file
diff --git a/関数・命令/PI.txt b/関数・命令/PI.txt
new file mode 100644 (file)
index 0000000..462ac8b
--- /dev/null
@@ -0,0 +1 @@
+  PI\r\r   PI\r\r   Type: variable\r\r   円周率 3.1415926536 の数値を返します。予約変数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/POKE.txt b/関数・命令/POKE.txt
new file mode 100644 (file)
index 0000000..c850c79
--- /dev/null
@@ -0,0 +1 @@
+  POKE\r\r   POKE <address>, <value>\r\r   Type: statement\r\r   メモリの <addrees> に <value> を入れます。\r   メモリからの取り出しには PEEK を用います。\r   保存サイズは OPTION MEMTYPE で設定できます。\r   例:\r\r   OPTION MEMTYPE float\r   mem = MEMORY(500)\r   POKE mem, 32.123\r\r
\ No newline at end of file
diff --git a/関数・命令/POW.txt b/関数・命令/POW.txt
new file mode 100644 (file)
index 0000000..1940002
--- /dev/null
@@ -0,0 +1 @@
+  POW\r\r   POW(<x>, <y>)\r\r   Type: function\r\r   Raise x to the power of y.\r\r
\ No newline at end of file
diff --git a/関数・命令/PRAGMA.txt b/関数・命令/PRAGMA.txt
new file mode 100644 (file)
index 0000000..083cf49
--- /dev/null
@@ -0,0 +1 @@
+  PRAGMA\r\r  【1.0 bulid 29 追加】\r   PRAGMA <OPTIONS x> | <LDFLAGS x> | <COMPILER x> | <INCLUDE x>\r\r   Type: statement\r\r   Instead of passing commandline arguments to influence the behavior of\r   the compiler, it is also possible to define these arguments\r   programmatically. Mostly these arguments are used when embedding\r   variables or library dependent structures into BaCon code. Example when\r   SDL code is included in the BaCon program:\r\r   PRAGMA LDFLAGS SDL\r   PRAGMA INCLUDE SDL/SDL.h\r\r   Example when GTK2 code is included in the BaCon program:\r\r   PRAGMA LDFLAGS `pkg-config --cflags --libs gtk+-2.0`\r   PRAGMA INCLUDE gtk-2.0/gtk/gtk.h\r   PRAGMA COMPILER gcc\r\r   Example on passing optimization parameters to the compiler:\r\r   PRAGMA OPTIONS -O2 -s\r\r   Multiple arguments can be passed too:\r\r   PRAGMA LDFLAGS iup cd iupcd im\r   PRAGMA INCLUDE iup.h cd.h cdiup.h im.h im_image.h\r\r
\ No newline at end of file
diff --git a/関数・命令/PRINT.txt b/関数・命令/PRINT.txt
new file mode 100644 (file)
index 0000000..2be2853
--- /dev/null
@@ -0,0 +1 @@
+  PRINT\r\r   PRINT [<value>] | [<text>] | [<variable>] | [<expression>] [FORMAT <format>[TO\r   <variable>[SIZE <size>]] | [,] | [;]\r\r   Type: statement\r\r   標準出力を行います。stderr へ出力したい場合は EPRINT を用いて下さい。\r   文末にセミコロン ; を入れる事で改行の出力を行わないようになります。\r   例:\r\r   PRINT "This line does ";\r   PRINT "end here: ";\r   PRINT linenr + 2\r\r   復数の出力を行う場合はコンマ , で区切ります。\r   例:\r\r   PRINT "This is operating system: ", OS$\r   PRINT "Sum of 1 and 2 is: ", 1 + 2\r\r   オプションの FORMAT を用いて出力フォーマットを定める事ができます。\r   フォーマットは C 言語の printf 命令に類似します。\r   例:\r\r   PRINT "My age is ", 42, " years which is ", 12 + 30 FORMAT "%s%d%s%d\n"\r\r   FORMAT を使用した場合は数字を文字列として出力されます。\r   TO を用いて出力結果を収納できます。SIZE によって長さを決める事もできます。\r   長さの指定がない場合は 512 文字になります。\r\r   t = NOW + 300\r   PRINT HOUR(t), MINUTE(t), SECOND(t) FORMAT ".2ld%.2ld%.2ld" TO time$\r   PRINT MONTH$(t) FORMAT "%s" TO current$ SIZE 15\r\r
\ No newline at end of file
diff --git a/関数・命令/PROTO.txt b/関数・命令/PROTO.txt
new file mode 100644 (file)
index 0000000..68777d2
--- /dev/null
@@ -0,0 +1 @@
+  PROTO\r\r  【1.0 build 10 追加】\r   PROTO <function name>[,<function name> ][, ...] [ALIAS <word>]\r\r   Type: statement\r\r   Defines an external function so it is accepted by the BaCon parser.\r   Mutliple function names may be mentioned but these should be separated\r   by a comma. Optionally, PROTO accepts an alias which can be used instead\r   of the original function name. During compilation the BaCon program must\r   explicitly be linked with an external library to resolve the function\r   name. Examples:\r\r   PROTO glClear, glClearColor, glEnable\r   PROTO "glutSolidTeapot" ALIAS "TeaPot"\r\r
\ No newline at end of file
diff --git a/関数・命令/PULL.txt b/関数・命令/PULL.txt
new file mode 100644 (file)
index 0000000..87ce5a1
--- /dev/null
@@ -0,0 +1 @@
+  PULL\r\r   PULL <x>\r\r   Type: statement\r\r   スタックから値を取り出し <x> へ収納します。<x> は変数である必要があります。\r   スタックは減少し次の値に移します。\r\r   スタックが最後の値に達した場合、PULL を実行すると最後の値を返します。\r   何も PUSH を実行されていなかった場合、\r   数値としては 0、文字列としてはヌルを返します。\r   スタックへ値を入れるために PUSH を参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/PUSH.txt b/関数・命令/PUSH.txt
new file mode 100644 (file)
index 0000000..9a7b91e
--- /dev/null
@@ -0,0 +1 @@
+  PUSH\r\r   PUSH <x>|<expression>\r\r   Type: statement\r\r   値 <x> または <expression> をスタックへ収納します。\r   スタックの制限はメモリが許される限り行う事が可能です。\r   スタックは LIFO(Last In, First Out=最後に入れた物が最初に取り出される)\r   が原則です。\r\r   スタックから取り出すために PULL を参照して下さい。\r\r   ' Initially create a new 0 value for stack\r   ' This will only be 0 when stack wasn't declared before\r   PULL stack\r   PUSH stack\r   ' Increase and push the stack 2x\r   ' Stack has now 3 values\r   INCR stack\r   PUSH stack\r   PUSH "End"\r   PULL var$\r   ' Print and pull current stack value - will return "end" 1 0\r   PRINT var$\r   PULL stack\r   PRINT stack\r   PULL stack\r   PRINT stack\r\r
\ No newline at end of file
diff --git a/関数・命令/PUTBYTE.txt b/関数・命令/PUTBYTE.txt
new file mode 100644 (file)
index 0000000..866018f
--- /dev/null
@@ -0,0 +1 @@
+  PUTBYTE\r\r   PUTBYTE <memory> TO <handle> [SIZE <x>]\r\r   Type: statement\r\r   メモリ領域からバイナリーデータを <handle> で開いているファイルへ収納します。\r   SIZE <x> を用いて収納する容量をバイト単位で決める事ができます。\r   省略した時は 1 バイトです。OPTION MEMTYPE で単位を決める事もできます。\r   GETBYTE が逆の動作をします。例は GETBYTE を参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/PUTLINE.txt b/関数・命令/PUTLINE.txt
new file mode 100644 (file)
index 0000000..8ef4418
--- /dev/null
@@ -0,0 +1 @@
+  PUTLINE\r\r   PUTLINE <text>|<var> TO <handle>\r\r   Type: statement\r\r   <handle> で開いているメモリ領域にデータを収納します。\r   改行を得て終了を終わらせます。\r   メモリ領域は OPEN で streaming mode 設定で開いている必要があります。\r   例:\r\r   PUTLINE "hello world" TO mymemory\r\r
\ No newline at end of file
diff --git a/関数・命令/RANDOM.txt b/関数・命令/RANDOM.txt
new file mode 100644 (file)
index 0000000..4b4a783
--- /dev/null
@@ -0,0 +1 @@
+  RANDOM\r\r  【1.0.9 追加】\r   RANDOM (<x>)\r\r   Type: function\r\r   0〜x-1 の間の整数で乱数を得ます。\r   小数を含む乱数の生成は RND を用います。\r\r   1〜100 までの乱数を得る例:\r\r   number = RANDOM(100) + 1\r\r
\ No newline at end of file
diff --git a/関数・命令/READ.txt b/関数・命令/READ.txt
new file mode 100644 (file)
index 0000000..7e701fe
--- /dev/null
@@ -0,0 +1 @@
+  READ\r\r   READ <x>[, <x2>][, <x3>][, ...]\r\r   Type: statement\r\r   DATA ブロックから値を読みだし、<x> に入れます。例:\r\r   LOCAL dat[8]\r   FOR i = 0 TO 7\r       READ dat[i]\r   NEXT\r   DATA 10, 20, 30, 40, 50, 60, 70, 80\r\r   復数の値を指定する事もできます。\r\r   READ a, b, c, d$\r   DATA 10, 20, 30, "BaCon"\r\r   RESTORE によって読みだし開始位置を指定する事ができます。\r\r
\ No newline at end of file
diff --git a/関数・命令/READLN.txt b/関数・命令/READLN.txt
new file mode 100644 (file)
index 0000000..bc807e3
--- /dev/null
@@ -0,0 +1 @@
+  READLN\r\r   READLN <var> FROM <handle>\r\r   Type: statement\r\r   <handle> で指定したファイルからアスキーデータを読み込み、<var> へ入れます。\r   バイナリーデータを扱う場合は GETBYTE を用いて下さい。\r   例:\r\r   READLN txt$ FROM myfile\r\r
\ No newline at end of file
diff --git a/関数・命令/RECEIVE.txt b/関数・命令/RECEIVE.txt
new file mode 100644 (file)
index 0000000..009dc8d
--- /dev/null
@@ -0,0 +1 @@
+  RECEIVE\r\r   RECEIVE <var> FROM <handle> [CHUNK <size> [SIZE <amount>]]\r\r   Type: statement\r\r   変数またはメモリの領域に <handle> のネットからデータを読みます。\r   CHUNK <size> で読み込み量を指定する事ができます。\r   指定がない場合はバッファが空になるまで、データを読みます。\r\r   実際に受信する量は SIZE <amount> で設定します。 If the amount of bytes received is 0, then the other side has closed the connection in an orderly fashion. In such a situation the network connection needs to be reopened.\r   例:\r\r   OPEN "www.google.com:80" FOR NETWORK AS mynet\r   SEND "GET / HTTP/1.1\r\nHost: www.google.com\r\n\r\n" TO mynet\r   REPEAT\r       RECEIVE dat$ FROM mynet\r       total$ = CONCAT$(total$, dat$)\r   UNTIL ISFALSE(WAIT(mynet, 500))\r   CLOSE NETWORK mynet\r\r
\ No newline at end of file
diff --git a/関数・命令/RECORD.txt b/関数・命令/RECORD.txt
new file mode 100644 (file)
index 0000000..d99a1f3
--- /dev/null
@@ -0,0 +1 @@
+  RECORD\r\r  【1.0 build 10 追加】\r   RECORD <var>\r       LOCAL <member1> TYPE <type>\r       LOCAL <member2> TYPE <type>\r       ....\r   END RECORD\r\r   Type: statement\r\r   Defines a record <var> with members. If the record is defined in the\r   mainprogram, it automatically will be globally visible. If the record is\r   defined within a function, the record will have a local scope, meaning\r   that it is only visible within that function. To declare a global record\r   in a function, use the DECLARE or GLOBAL keyword.\r\r   The members of a record should be defined using the LOCAL statement and\r   can be accessed with the 'var.member' notation. Also refer to WITH for\r   assigning values to multiple members at the same time. Example:\r\r   RECORD var\r       LOCAL x\r       LOCAL y\r   END RECORD\r   var.x = 10\r   var.y = 20\r   PRINT var.x + var.y\r\r
\ No newline at end of file
diff --git a/関数・命令/REDIM.txt b/関数・命令/REDIM.txt
new file mode 100644 (file)
index 0000000..b9bb477
--- /dev/null
@@ -0,0 +1 @@
+  REDIM\r\r  【1.0 build 26 追加】\r   REDIM <var> TO <size>\r\r   Type: statement\r\r   Redimensions a dynamic array to a new size. The contents of the array\r   will be preserved. If the array becomes smaller then the elements at the\r   end of the array will be cleared. The dynamic array has to be declared\r   previously using DECLARE or LOCAL. Example:\r\r   REDIM a$ TO 20\r\r
\ No newline at end of file
diff --git a/関数・命令/REGEX.txt b/関数・命令/REGEX.txt
new file mode 100644 (file)
index 0000000..1019b9d
--- /dev/null
@@ -0,0 +1 @@
+  REGEX\r\r   REGEX (<txt$>, <expr$>)\r\r   Type: function\r\r   POSIX 拡張正規表現 <expr$> で文字列 <txt$> を検索します。\r   検索一致する場合は最初に見つかった位置を返し値として返します。\r   見つからない場合は 0 を返し値として返します。\r   見つかった文字列の長さは REGLEN を用いて得る事ができます。\r\r   OPTION COMPARE を用いて大文字・小文字の区別が設定できます。\r   例:\r\r   ' 英文を検索します\r   PRINT REGEX("Hello world", "[[:alnum:]]")\r\r   ' 数字「以外」を検索します\r   PRINT REGEX("Hello world", "[^0-9]")\r\r   ' a・l・z のいずれかを検索します\r   PRINT REGEX("Hello world", "a|l|z")\r\r
\ No newline at end of file
diff --git a/関数・命令/REGLEN.txt b/関数・命令/REGLEN.txt
new file mode 100644 (file)
index 0000000..ec9f4ae
--- /dev/null
@@ -0,0 +1 @@
+  REGLEN\r\r  【2.2.0 追加】\r   REGLEN\r\r   Type: variable\r\r   REGEX で実行した長さを返します。予約変数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/RELATE.txt b/関数・命令/RELATE.txt
new file mode 100644 (file)
index 0000000..a7e589c
--- /dev/null
@@ -0,0 +1 @@
+  RELATE\r\r  【1.0 build 15 追加】\r   RELATE <assocA> TO <assocB>[, assocC, ...]\r\r   Type: statement\r\r   This statement creates a relation between associative arrays.\r   Effectively this will result into duplication of settings; an index in\r   array <assocA> also will be set in array <assocB>. A previous\r   declaration of the associative arrays involved is required. Example:\r\r   DECLARE human, mortal ASSOC int\r   RELATE human TO mortal\r   human("socrates") = TRUE\r   PRINT mortal("socrates")\r\r
\ No newline at end of file
diff --git a/関数・命令/REM.txt b/関数・命令/REM.txt
new file mode 100644 (file)
index 0000000..b6303c8
--- /dev/null
@@ -0,0 +1 @@
+  REM\r\r  【1.0 build 28 追加 - /* */ 】\r   REM [<remark>]\r\r   Type: statement\r\r   コメントをコードに加えます。<remark> は任意の文字列を含められます。\r   REM の代わりに ' を使用する事もできます。\r\r   BaCon では C 言語スタイルのブロックコメントも受け入れます。\r   複数行を /* と */ で囲みます。\r\r
\ No newline at end of file
diff --git a/関数・命令/RENAME.txt b/関数・命令/RENAME.txt
new file mode 100644 (file)
index 0000000..ed52ea2
--- /dev/null
@@ -0,0 +1 @@
+  RENAME\r\r   RENAME <filename> TO <new filename>\r\r   Type: statement\r\r   ファイル名を変更します。異なるパス名が含まれている場合、ファイルは <new filename> に含まれるパス名に移動します。\r   例:\r\r   RENAME "tmp.txt" TO "real.txt"\r\r
\ No newline at end of file
diff --git a/関数・命令/REPEAT.txt b/関数・命令/REPEAT.txt
new file mode 100644 (file)
index 0000000..5b7e8b3
--- /dev/null
@@ -0,0 +1 @@
+  REPEAT\r\r   REPEAT\r       <body>\r       [BREAK]\r   UNTIL <expr>\r\r   Type: statement\r\r   The REPEAT/UNTIL construction repeats a body of statements. The\r   difference with WHILE/WEND is that the body will be executed at least\r   once. The optional BREAK statement can be used to break out the loop.\r   Example:\r\r   REPEAT\r       C = GETKEY\r   UNTIL C EQ 27\r\r
\ No newline at end of file
diff --git a/関数・命令/REPLACE$.txt b/関数・命令/REPLACE$.txt
new file mode 100644 (file)
index 0000000..db7babd
--- /dev/null
@@ -0,0 +1 @@
+  REPLACE$\r\r   REPLACE$(<haystack$>, <needle$>, <replacement$>)\r\r   Type: function\r\r   文字列 <haystack$> の <needle$> を <replacement$> に置き換えて返します。\r   The replacement does not necessarily need to be of the same size as the substring.\r   例:\r\r   PRINT REPLACE$("Hello world", "l", "p")\r   PRINT REPLACE$("Some text", "me", "123")\r\r
\ No newline at end of file
diff --git a/関数・命令/RESIZE.txt b/関数・命令/RESIZE.txt
new file mode 100644 (file)
index 0000000..3959986
--- /dev/null
@@ -0,0 +1 @@
+  RESIZE\r\r   RESIZE <x>, <y>\r\r   Type: statement\r\r   Resizes memory area starting at address <x> to an amount of <y> of the\r   type determined by OPTION MEMTYPE. If the area is enlarged, the original\r   contents of the area remain intact.\r\r
\ No newline at end of file
diff --git a/関数・命令/RESTORE.txt b/関数・命令/RESTORE.txt
new file mode 100644 (file)
index 0000000..b0cf53f
--- /dev/null
@@ -0,0 +1 @@
+  RESTORE\r\r   RESTORE [<label>]\r\r   Type: statement\r\r   DATA のポインターを変更します。\r   <label> がある場合は LABEL <label> 以降の DATA を参照先に変更します。\r   <label> がない場合は頭の DATA を参照先に変更します。\r   例:\r\r   DATA 1, 2, 3, 4, 5\r   LABEL txt\r   DATA "Hello", "world", "this", "is", "BaCon"\r   RESTORE txt\r   READ dat$\r\r
\ No newline at end of file
diff --git a/関数・命令/RESUME.txt b/関数・命令/RESUME.txt
new file mode 100644 (file)
index 0000000..e2c0cf1
--- /dev/null
@@ -0,0 +1 @@
+  RESUME\r\r   RESUME\r\r   Type: function\r\r   エラーが発生した際、エラーの後から再開します。\r   例:\r\r   TRAP LOCAL\r   CATCH GOTO print_err\r   DELETE FILE "somefile.txt"\r   PRINT "Resumed..."\r   END\r   LABEL print_err\r       PRINT ERR$(ERROR)\r       RESUME\r\r
\ No newline at end of file
diff --git a/関数・命令/RETURN.txt b/関数・命令/RETURN.txt
new file mode 100644 (file)
index 0000000..a0fb06e
--- /dev/null
@@ -0,0 +1 @@
+  RETURN\r\r   RETURN [<value>]\r\r   Type: statement\r\r   If RETURN has no argument it will return to the last invoked GOSUB. If\r   no GOSUB was invoked previously then RETURN has no effect.\r\r   Only in case of functions the RETURN statement must contain a value.\r   This is the value which is returned when the FUNCTION is finished.\r\r
\ No newline at end of file
diff --git a/関数・命令/RETVAL.txt b/関数・命令/RETVAL.txt
new file mode 100644 (file)
index 0000000..45b00c2
--- /dev/null
@@ -0,0 +1 @@
+  RETVAL\r\r  【1.0 build 20 追加】\r   RETVAL\r\r   Type: variable\r\r   SYSTEM・EXEC$ によって実行されるコマンドの戻り値が入ります。予約変数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/REVERSE$.txt b/関数・命令/REVERSE$.txt
new file mode 100644 (file)
index 0000000..581b2f9
--- /dev/null
@@ -0,0 +1 @@
+  REVERSE$\r\r   REVERSE$(<x$>)\r\r   Type: function\r\r   <x$> を逆転させて返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/REWIND.txt b/関数・命令/REWIND.txt
new file mode 100644 (file)
index 0000000..c41afc4
--- /dev/null
@@ -0,0 +1 @@
+  REWIND\r\r   REWIND <handle>\r\r   Type: statement\r\r   Returns to the beginning of a file opened with <handle>.\r\r
\ No newline at end of file
diff --git a/関数・命令/RIGHT$.txt b/関数・命令/RIGHT$.txt
new file mode 100644 (file)
index 0000000..00320c4
--- /dev/null
@@ -0,0 +1 @@
+  RIGHT$\r\r   RIGHT$(<x$>, <y>)\r\r   Type: function\r\r   <x$> の右から <y> 文字分を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/RND.txt b/関数・命令/RND.txt
new file mode 100644 (file)
index 0000000..952b9cc
--- /dev/null
@@ -0,0 +1 @@
+  RND\r\r   RND\r\r   Type: function\r\r   0 から MAXRANDOM で指定した値の間で乱数を返します。\r   SEEDを用いて乱数の生成を変える事ができます。\r   乱数を生み出すより便利な方法のために RANDOM を参照して下さい。\r   例:\r\r   SEED NOW\r   x = RND\r\r
\ No newline at end of file
diff --git a/関数・命令/ROUND.txt b/関数・命令/ROUND.txt
new file mode 100644 (file)
index 0000000..29b206f
--- /dev/null
@@ -0,0 +1 @@
+  ROUND\r\r   ROUND(<x>)\r\r   Type: function\r\r   Rounds x to the nearest integer number. For compatibility reasons, the\r   keyword INT may be used instead. Note that this function always returns\r   an integer value.\r\r   See also FLOOR to round down to the nearest the integer and MOD to get\r   the fraction from a fractional number.\r\r
\ No newline at end of file
diff --git a/関数・命令/ROWS.txt b/関数・命令/ROWS.txt
new file mode 100644 (file)
index 0000000..a9b660c
--- /dev/null
@@ -0,0 +1 @@
+  ROWS\r\r  【1.0 build 13 追加】\r   ROWS\r\r   Type: function\r\r   ANSI 互換ターミナルで現在の縦位置を返します。\r   横位置は COLUMNS を使用します。\r
\ No newline at end of file
diff --git a/関数・命令/SCROLL.txt b/関数・命令/SCROLL.txt
new file mode 100644 (file)
index 0000000..39eb726
--- /dev/null
@@ -0,0 +1 @@
+  SCROLL\r\r  【1.0 bulid 29 追加】\r   SCROLL <UP [x]|DOWN [x]>\r\r   Type: statement\r\r   ANSI 対応ターミナルで上下にスクロールします。\r   [x] はスクロールする行数を指定します。省略した場合は1行スクロールします。\r\r
\ No newline at end of file
diff --git a/関数・命令/SEARCH.txt b/関数・命令/SEARCH.txt
new file mode 100644 (file)
index 0000000..fbeaa22
--- /dev/null
@@ -0,0 +1 @@
+  SEARCH\r\r   SEARCH(<handle>, <string>)\r\r   Type: function\r\r   <handle> で開いたファイルから <strong> を検索します。\r   文字列が最初に見つかった位置を返り値にして返します。\r   ファイルポインターの検索開始位置を変えるために SEEK を使ってください。\r   検索文字列が見つからない場合は -1 を返し値として返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/SECOND.txt b/関数・命令/SECOND.txt
new file mode 100644 (file)
index 0000000..79bc34b
--- /dev/null
@@ -0,0 +1 @@
+  SECOND\r\r   SECOND(<x>)\r\r   Type: function\r\r   秒(0〜59)を返します。<x> は 1970年1月1日 0:00:00 からの秒数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/SEED.txt b/関数・命令/SEED.txt
new file mode 100644 (file)
index 0000000..fbb1c65
--- /dev/null
@@ -0,0 +1 @@
+  SEED\r\r   SEED x\r\r   Type: statement\r\r   Seeds the random number generator with some value. After that,\r   subsequent usages of RND and RANDOM will return numbers in a random\r   order. Note that seeding the random number generator with the same\r   number also will result in the same sequence of random numbers.\r\r   By default, a BaCon program will automatically seed the random number\r   generator as soon as it is executed, so it may not be needed to use this\r   function explicitly. Example:\r\r   SEED NOW\r\r
\ No newline at end of file
diff --git a/関数・命令/SEEK.txt b/関数・命令/SEEK.txt
new file mode 100644 (file)
index 0000000..083df4f
--- /dev/null
@@ -0,0 +1 @@
+  SEEK\r\r   SEEK <handle> OFFSET <offset> [WHENCE START|CURRENT|END]\r\r   Type: statement\r\r   <handle> で開いているファイルポインターを <offset> に移します。\r   WHENCE を用いて基準を定める事も可能です。\r\r
\ No newline at end of file
diff --git a/関数・命令/SELECT.txt b/関数・命令/SELECT.txt
new file mode 100644 (file)
index 0000000..b1fd70a
--- /dev/null
@@ -0,0 +1 @@
+  SELECT\r\r   SELECT <variable> CASE <body>[;] [CASE <body>[;]][...] [DEFAULT <body>] END SELECT\r\r   Type: statement\r\r   With this statement a variable can be examined on multiple values.\r   Optionally, if none of the values match the SELECT statement may fall\r   back to the DEFAULT clause. Example:\r\r   SELECT myvar\r       CASE 1\r           PRINT "Value is 1"\r       CASE 5\r           PRINT "Value is 5"\r       CASE 2*3\r           PRINT "Value is ", 2*3\r       DEFAULT\r           PRINT "Value not found"\r   END SELECT\r\r   Contrary to most implementations, in BaCon the CASE keyword also may\r   refer to expressions and variables. Also BaCon knows how to 'fall\r   through' using a semicolon, in case multiple values lead to the same\r   result:\r\r   SELECT st$\r       CASE "Man"\r           PRINT "It's male"\r       CASE "Woman"\r           PRINT "It's female"\r       CASE "Child";\r       CASE "Animal"\r           PRINT "It's it"\r       DEFAULT\r           PRINT "Alien detected"\r   END SELECT\r\r
\ No newline at end of file
diff --git a/関数・命令/SEND.txt b/関数・命令/SEND.txt
new file mode 100644 (file)
index 0000000..f42cea6
--- /dev/null
@@ -0,0 +1 @@
+  SEND\r\r   SEND <var> TO <handle> [CHUNK <chunksize>]\r\r   Type: statement\r\r   <handle> で開いたネットへ送信します。\r   送信量は CHUNK <chunksize> で指定する事ができます。\r   例は RECEIVE を参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/SETENVIRON.txt b/関数・命令/SETENVIRON.txt
new file mode 100644 (file)
index 0000000..cc07c51
--- /dev/null
@@ -0,0 +1 @@
+  SETENVIRON\r\r   SETENVIRON <var$>, <value$>\r\r   Type: statement\r\r   環境変数 <var$> に <value$> を設定します。\r   もし値がすでに入っていた場合は上書きされます。\r   GETENVIRON$ を用いて環境変数を取り出す事ができます。\r   例:\r\r   SETENVIRON "LANG", "C"\r\r
\ No newline at end of file
diff --git a/関数・命令/SGN.txt b/関数・命令/SGN.txt
new file mode 100644 (file)
index 0000000..9e17822
--- /dev/null
@@ -0,0 +1 @@
+  SGN\r\r   SGN(x)\r\r   Type: function\r\r   Returns the sign of x. If x is a negative value, this function returns\r   -1. If x is a positive value, this function returns 1. If x is 0 then a\r   0 is returned.\r\r
\ No newline at end of file
diff --git a/関数・命令/SIN.txt b/関数・命令/SIN.txt
new file mode 100644 (file)
index 0000000..7634a5c
--- /dev/null
@@ -0,0 +1 @@
+  SIN\r\r   SIN(<x>)\r\r   Type: function\r\r   <x> のサイン(sinus)を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/SIZEOF.txt b/関数・命令/SIZEOF.txt
new file mode 100644 (file)
index 0000000..f84d5c9
--- /dev/null
@@ -0,0 +1 @@
+  SIZEOF\r\r  【1.0 build 18 追加】\r   SIZEOF(<type>)\r\r   Type: function\r\r   C 言語形式のバイトサイズを返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/SLEEP.txt b/関数・命令/SLEEP.txt
new file mode 100644 (file)
index 0000000..15098b9
--- /dev/null
@@ -0,0 +1 @@
+  SLEEP\r\r   SLEEP <x>\r\r   Type: statement\r\r   <x> ミリ秒実行を止めます。 (sleep 1000 で1秒止めます)\r\r
\ No newline at end of file
diff --git a/関数・命令/SORT.txt b/関数・命令/SORT.txt
new file mode 100644 (file)
index 0000000..fe894f8
--- /dev/null
@@ -0,0 +1 @@
+  SORT\r\r   SORT <x> [SIZE <x>] [DOWN]\r\r   Type: statement\r\r   配列を並べ替えます。\r   Only the basename of the array should be mentioned, not the dimension.\r   The array may both be a numeric or a string array.\r   The amount of elements involved can be specified with SIZE.\r   This keyword is optional for static arrays,\r   but should always be used in case of dynamic arrays.\r   Also optionally the keyword DOWN can be used to sort in descending order.\r   例:\r\r   GLOBAL a$[5] TYPE STRING\r   a$[0] = "Hello"\r   a$[1] = "my"\r   a$[2] = "good"\r   a$[4] = "friend"\r   SORT a$\r\r
\ No newline at end of file
diff --git a/関数・命令/SPC$.txt b/関数・命令/SPC$.txt
new file mode 100644 (file)
index 0000000..dbb69ef
--- /dev/null
@@ -0,0 +1 @@
+  SPC$\r\r   SPC$(<x>)\r\r   Type: function\r\r   <x> 文字分の空白を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/SPLIT.txt b/関数・命令/SPLIT.txt
new file mode 100644 (file)
index 0000000..b62ace5
--- /dev/null
@@ -0,0 +1 @@
+  SPLIT\r\r   SPLIT <string> BY <sub> TO <array> SIZE <variable>\r\r   Type: statement\r\r   文字列を分けます。<sub> で分ける場所を定める事ができます。\r   結果が <array> に入ります。\r   この結果が生じる配列がその要素を含むかが分からないため、\r   <array> は前もって LOCAL・GLOBAL で宣言されないかもしれません。\r\r   SPLIT が FUNCTION または SUB で使われているならば、\r   <array> は LOCAL 範囲を持ちます。\r   他の場合、<array> はグローバルになりすべての FUNCTION または SUB で\r   アクセスすることができます。\r\r   <array> の数は <variable> に保管されます。\r   <variable> は LOCAL または GLOBAL を使って宣言することができます。\r   例:\r\r   OPTION BASE 1\r   LOCAL dimension\r   SPLIT "one,two,,three" BY "," TO array$ SIZE dimension\r   FOR i = 1 TO dimension\r       PRINT array$[i]\r   NEXT\r\r   上記の例はでは4つの要素を返します。(3つ目の要素は空です)\r   OPTION BASE 1 の代わりに OPTION COLLAPSE 1 とする場合は\r   3つの要素を返し、空を無視します。\r   JOIN も参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/SQR.txt b/関数・命令/SQR.txt
new file mode 100644 (file)
index 0000000..6678685
--- /dev/null
@@ -0,0 +1 @@
+  SQR\r\r   SQR(<x>)\r\r   Type: function\r\r   <x> の平方根(√)を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/STOP.txt b/関数・命令/STOP.txt
new file mode 100644 (file)
index 0000000..7635a26
--- /dev/null
@@ -0,0 +1 @@
+  STOP\r\r  【1.0.5 追加】\r   STOP\r\r   Type: statement\r\r   現在のプログラムを停止し、UNIX プロンプトへ戻ります。UNIX コマンド「fg」を実行する事で、プログラムを再開する事ができます。または CONT コマンドを送信して下さい。: kill -CONT <pid>\r\r
\ No newline at end of file
diff --git a/関数・命令/STR$.txt b/関数・命令/STR$.txt
new file mode 100644 (file)
index 0000000..d7dacb7
--- /dev/null
@@ -0,0 +1 @@
+  STR$\r\r   STR$(<x>)\r\r   Type: function\r\r   数値 <x> を文字列に変換します。 (VAL の逆)\r   例:\r\r   PRINT STR$(123)\r\r
\ No newline at end of file
diff --git a/関数・命令/SUB.txt b/関数・命令/SUB.txt
new file mode 100644 (file)
index 0000000..b5f1b49
--- /dev/null
@@ -0,0 +1 @@
+  SUB\r\r   SUB <name>[(STRING <s>| NUMBER <i>| FLOATING <f>| VAR <v> SIZE <t>)]\r       <body>\r   ENDSUB | END SUB\r\r   Type: statement\r\r   サブプロシージャを定めます。 サブプロシージャは返り値を返しません。\r   (FUNCTION も参照)\r\r   LOCAL 宣言されない限りは、SUB で使われている変数はグローバル変数扱いになります。  \r   入力される argument のため、STRING NUMBER FLOATING の他、\r   基本的な C 言語の種類も使用することができます。\r   VARとともに可変的なサイズの argument を定められることができます。\r   例:\r\r   SUB add(NUMBER x, NUMBER y)\r       LOCAL result\r       PRINT "The sum of x and y is: ";\r       result = x + y\r       PRINT result\r   END SUB\r\r
\ No newline at end of file
diff --git a/関数・命令/SYSTEM.txt b/関数・命令/SYSTEM.txt
new file mode 100644 (file)
index 0000000..dd1122c
--- /dev/null
@@ -0,0 +1 @@
+  SYSTEM\r\r   SYSTEM <command$>\r\r   Type: statement\r\r   <command$> を実行します。命令の実行が完了するまで、BaCon プログラムは止められます。実行されたコマンドの exit ステータスは予約値 RETVAL に保存されます。EXEC$ を代わりに使う事で、コマンドの返り値を得る事ができます。\r   例:\r\r   SYSTEM "ls -l"\r\r
\ No newline at end of file
diff --git a/関数・命令/TAB$.txt b/関数・命令/TAB$.txt
new file mode 100644 (file)
index 0000000..95dce08
--- /dev/null
@@ -0,0 +1 @@
+  TAB$\r\r   TAB$(<x>)\r\r   Type: function\r\r   <x> 分のタブを返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/TAN.txt b/関数・命令/TAN.txt
new file mode 100644 (file)
index 0000000..5461398
--- /dev/null
@@ -0,0 +1 @@
+  TAN\r\r   TAN(<x>)\r\r   Type: function\r\r   <x> のタンジェント(tangent)を返します。\r
\ No newline at end of file
diff --git a/関数・命令/TELL.txt b/関数・命令/TELL.txt
new file mode 100644 (file)
index 0000000..2c856b9
--- /dev/null
@@ -0,0 +1 @@
+  TELL\r\r   TELL(<handle>)\r\r   Type: function\r\r   <handle> で開いているファイルの現在位置を返します。\r\r
\ No newline at end of file
diff --git a/関数・命令/TEXTDOMAIN.txt b/関数・命令/TEXTDOMAIN.txt
new file mode 100644 (file)
index 0000000..490aeac
--- /dev/null
@@ -0,0 +1 @@
+  TEXTDOMAIN\r\r   TEXTDOMAIN <domain$>, <directory$>\r\r   Type: statement\r\r   OPTION INTERNATIONAL な有効の場合に実行できます。\r   BaCon はメッセージカタログのため、現在のファイル名とベースディレクトリ「/usr/share/locale」で text domain をデフォルトで構成します。\r   これを変更し、ディレクトリの基礎を形成する事ができます。\r
\ No newline at end of file
diff --git a/関数・命令/TIMER.txt b/関数・命令/TIMER.txt
new file mode 100644 (file)
index 0000000..7accfb2
--- /dev/null
@@ -0,0 +1 @@
+  TIMER\r\r  【1.0 build 29 追加】\r   TIMER\r\r   Type: function\r\r   プログラムの実行の経過時間を返します。単位はミリ秒です。\r   例:\r\r   iter = 1\r   WHILE iter > 0 DO\r       IF TIMER = 1 THEN BREAK\r       INCR iter\r   WEND\r   PRINT "Got ", iter-1, " iterations in 1 millisecond!"\r\r
\ No newline at end of file
diff --git a/関数・命令/TIMEVALUE.txt b/関数・命令/TIMEVALUE.txt
new file mode 100644 (file)
index 0000000..f165364
--- /dev/null
@@ -0,0 +1 @@
+  TIMEVALUE\r\r   TIMEVALUE(<year>,<month>,<day>,<hour>,<minute>,<secord>)\r\r   Type: function\r\r   1970年1月1日 0:00:00 からの秒数を返します。\r   例:\r\r   PRINT TIMEVALUE(2009, 11, 29, 12, 0, 0)\r\r
\ No newline at end of file
diff --git a/関数・命令/TRACE.txt b/関数・命令/TRACE.txt
new file mode 100644 (file)
index 0000000..e46d0db
--- /dev/null
@@ -0,0 +1 @@
+  TRACE\r\r  【1.0.5 追加】\r   TRACE <ON|OFF>\r\r   Type: statement\r\r   TRACE ON でトレースモードを開始します。 プログラムはキーの入力により進行します。\r   ソースコードの次の行は画面に表示されで実行されます。\r   Esc キーによってプログラムを終了させる事ができます。\r   TRACE OFF でトレースモードを終了します。\r\r
\ No newline at end of file
diff --git a/関数・命令/TRAP.txt b/関数・命令/TRAP.txt
new file mode 100644 (file)
index 0000000..7b19e0f
--- /dev/null
@@ -0,0 +1 @@
+  TRAP\r\r   TRAP <LOCAL|SYSTEM>\r\r   Type: statement\r\r   Sets the runtime error trapping. By default, BaCon performs error\r   trapping (LOCAL). BaCon tries to examine statements and functions where\r   possible, and will display an error message based on the operating\r   system internals, indicating which statement or function causes a\r   problem. Optionally, when a CATCH is set, BaCon can jump to a LABEL\r   instead, where a self-defined error function can be executed, and from\r   where a RESUME is possible.\r\r   When set to SYSTEM, error trapping is performed by the operating system.\r   This means that if an error occurs, a signal will be caught by the\r   program and a generic error message is displayed on the prompt. The\r   program will then exit gracefully\r\r   The setting LOCAL decreases the performance of the program, because\r   additional runtime checks are carried out when the program is executed.\r\r
\ No newline at end of file
diff --git a/関数・命令/TRUE.txt b/関数・命令/TRUE.txt
new file mode 100644 (file)
index 0000000..2003b3d
--- /dev/null
@@ -0,0 +1 @@
+  TRUE\r\r   TRUE\r\r   Type: variable\r\r   1 の返り値を返します。これは FALSE と逆の変数になります。\r\r
\ No newline at end of file
diff --git a/関数・命令/UCASE$.txt b/関数・命令/UCASE$.txt
new file mode 100644 (file)
index 0000000..bd2ba66
--- /dev/null
@@ -0,0 +1 @@
+  UCASE$\r\r   UCASE$(<x$>)\r\r   Type: function\r\r   文字列 <x$> を大文字にして返します。LCASE$ も参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/USEC.txt b/関数・命令/USEC.txt
new file mode 100644 (file)
index 0000000..354f1a3
--- /dev/null
@@ -0,0 +1 @@
+  USEC\r\r   USEC\r       <body>\r   ENDUSEC | END USEC\r\r   Type: statement\r\r   C言語のコードを囲みます。このコードは C 言語のソースファイルに変更されず入ります。例:\r\r   USEC\r       char *str;\r       str = strdup("Hello");\r       printf("%s\n", str);\r   END USEC\r\r
\ No newline at end of file
diff --git a/関数・命令/USEH.txt b/関数・命令/USEH.txt
new file mode 100644 (file)
index 0000000..2c3d02a
--- /dev/null
@@ -0,0 +1 @@
+  USEH\r\r  【1.0 build 28 追加】\r   USEH\r       <body>\r   ENDUSEH | END USEH\r\r   Type: statement\r\r   C 言語の宣言・定義を定めます。\r   このコードは発生するヘッダファイルへ変更されずに追加されます。\r   これは、外部ライブラリから変数を使う場合には、特に役に立つことがあります。\r   C 言語のソースコードを用いるために USEC を参照して下さい。\r   例:\r\r   USEH\r       char *str;\r       extern int pbl_errno;\r   END USEH\r\r
\ No newline at end of file
diff --git a/関数・命令/VAL.txt b/関数・命令/VAL.txt
new file mode 100644 (file)
index 0000000..fa3b025
--- /dev/null
@@ -0,0 +1 @@
+  VAL\r\r   VAL(<x$>)\r\r   Type: function\r\r   <x$> を数値化して返します。STR$ の逆。\r   例:\r\r   nr$ = "456"\r   q = VAL(nr$)\r\r
\ No newline at end of file
diff --git a/関数・命令/VAR.txt b/関数・命令/VAR.txt
new file mode 100644 (file)
index 0000000..49e27d4
--- /dev/null
@@ -0,0 +1 @@
+  VAR\r\r   VAR <array$> SIZE <x>\r\r   Type: statement\r\r   Declares a variable argument list in a FUNCTION or SUB. There may not be\r   other variable declarations in the function header. The arguments to the\r   function are put into an array of strings, and the resulting amount of\r   elements is stored in <x>. Example:\r\r   OPTION BASE 1\r   SUB demo (VAR arg$ SIZE amount)\r       LOCAL x\r       PRINT "Amount of incoming arguments: ", amount\r       FOR x = 1 TO amount\r           PRINT arg$[x]\r       NEXT\r   END SUB\r\r   ' No argument\r   demo(0)\r   ' One argument\r   demo("abc")\r   ' Three arguments\r   demo("123", "456", "789")\r\r
\ No newline at end of file
diff --git a/関数・命令/VERSION$.txt b/関数・命令/VERSION$.txt
new file mode 100644 (file)
index 0000000..e3559b5
--- /dev/null
@@ -0,0 +1 @@
+  VERSION$\r\r   VERSION$\r\r   Type: variable\r\r   BaCon のバージョンをテキストで返します。予約変数になります。\r\r
\ No newline at end of file
diff --git a/関数・命令/WAIT.txt b/関数・命令/WAIT.txt
new file mode 100644 (file)
index 0000000..71ee006
--- /dev/null
@@ -0,0 +1 @@
+  WAIT\r\r   WAIT(<handle>, <milliseconds>)\r\r   Type: function\r\r   データが <handle> で利用可能になるまで、最大 <milliseconds> ミリ秒までプログラムの中止します。\r\r   これは特に利用できるデータがないならば RECEIVE がブロックするネットワーク・プログラムに役立ちます。 WAIT機能は <handle> をチェックします。データがあるならばキューに貯まります。その場合は返り値 1 で返します。データがないならば、それは帰る前に多くても <milliseconds> ミリ秒を待ちます。利用できるデータがないならば、WAITは返り値 0 を返します。 例のために RECEIVE を参照してください。\r\r   このファンクションは現在のプログラムを中断させる事なくキーが押されるかどうか知るのに用いる事ができます。\r   このケースではハンドルとして STDIN filedescriptor (0) を使っています。\r   例:\r\r   REPEAT\r       PRINT "Press Escape... waiting..."\r       key = WAIT(STDIN_FILENO, 50)\r   UNTIL key = 27\r\r   このコードで観察されることができるように 0 の代わりに、予約の POSIX 変数 STDIN_FILENO を使用することができます。  standard POSIX variables も参照して下さい。\r\r
\ No newline at end of file
diff --git a/関数・命令/WEEK.txt b/関数・命令/WEEK.txt
new file mode 100644 (file)
index 0000000..7e4f3ed
--- /dev/null
@@ -0,0 +1 @@
+  WEEK\r\r   WEEK(<x>)\r\r   Type: function\r\r   年からの週(1〜53)を返します。<x> は1970年1月1日からの秒数です。\r   例:\r\r   PRINT WEEK(NOW)\r\r
\ No newline at end of file
diff --git a/関数・命令/WEEKDAY$.txt b/関数・命令/WEEKDAY$.txt
new file mode 100644 (file)
index 0000000..2db3824
--- /dev/null
@@ -0,0 +1 @@
+  WEEKDAY$\r\r   WEEKDAY$(<x>)\r\r   Type: function\r\r   システムの LOCALE で指定されている言語で曜日を返します。\r   (LOCALE が "C" の場合は "Monday" "Tuesday" など)\r   <x> の値は 1970年1月1日 0:00:00 からの秒数です。\r\r
\ No newline at end of file
diff --git a/関数・命令/WHILE.txt b/関数・命令/WHILE.txt
new file mode 100644 (file)
index 0000000..8ffca83
--- /dev/null
@@ -0,0 +1 @@
+  WHILE\r\r   WHILE <expr> [DO]\r       <body>\r       [BREAK]\r   WEND\r\r   Type: statement\r\r   WHILE・WEND は <body> を繰り返します。DO はオプションです。\r   またオプションの BREAK はループから外に出るのに用いられます。\r   例:\r\r   LET a = 5\r   WHILE a > 0 DO\r       PRINT a\r       a = a - 1\r   WEND\r\r
\ No newline at end of file
diff --git a/関数・命令/WITH.txt b/関数・命令/WITH.txt
new file mode 100644 (file)
index 0000000..7a2f469
--- /dev/null
@@ -0,0 +1 @@
+  WITH\r\r   WITH <record>\r       .<var> = <value>\r       .<var> = <value>\r       ....\r   END WITH\r\r   Type: statement\r\r   <value> をそれぞれの <record> に割り当てます。\r   例:\r\r   WITH myrecord\r       .name$ = "Peter"\r       .age = 41\r       .street = Falkwood Area 1\r       .city = The Hague\r   END WITH\r\r
\ No newline at end of file
diff --git a/関数・命令/WRITELN.txt b/関数・命令/WRITELN.txt
new file mode 100644 (file)
index 0000000..85ebb63
--- /dev/null
@@ -0,0 +1 @@
+  WRITELN\r\r   WRITELN <text>|<var> TO <handle>\r\r   Type: statement\r\r   <handle> で開いているファイルにアスキーデータを書き込みます。\r   バイナリーデータを書き込みしたい場合は PUTBYTE を参照して下さい。\r   例:\r\r   WRITELN "hello world" TO myfile\r\r
\ No newline at end of file
diff --git a/関数・命令/YEAR.txt b/関数・命令/YEAR.txt
new file mode 100644 (file)
index 0000000..b26e794
--- /dev/null
@@ -0,0 +1 @@
+  YEAR\r\r   YEAR(<x>)\r\r   Type: function\r\r   <x> の年を返します。<x> は1970年1月1日 0:00:00 からの秒数です。\r   例:\r\r   PRINT YEAR(NOW)\r\r
\ No newline at end of file