OSDN Git Service

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

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