⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bb.doc

📁 basic interpreter for learning
💻 DOC
📖 第 1 页 / 共 5 页
字号:



















                                       6





                  Copyright (c) 1992, 1993 by Mark Davidsaver





          DOS INSTRUCTIONS
          -------------------------------------------------------

          BasicBasic allows you to write programs using the BASIC
          programming language.  This programming language works the
          same in DOS or Windows.  The BasicBasic editor which
          allows you to enter your program is slightly different in
          DOS and Windows.  This section contains specific
          instructions on using the DOS version of BasicBasic.  The
          next section contains similar instructions for Windows.

          (Note: If you do not want to use the BasicBasic editor,
          you do not have to.  See the section on Seperate
          Compilation for instructions on compiling programs entered
          with another editor)

          This section assumes you have installed all required files
          in one directory as described in the preceding section
          'Getting Started Quickly'.  It also assumes that you have
          Changed Directories so that the BasicBasic directory is
          the current directory.

          To start BasicBasic you type  BBE<

                                                 (< means Enter)

          BasicBasic will then setup the screen in the following
          format:

                 ---------------------------------------------
            1   |                 file name line              |
            2   |               Function summary line         |
            3   |                                             |
            .   .                                             .
            .   .                                             .
            .   .                                             .
            25  |                   Error line                |
                 ---------------------------------------------

          The top line (line 1) displays the name of the currently
          opened file.  When you first start BasicBasic no file will
          be opened so the top line displays the name of the
          program.  The second line contains a list of the most
          commonly used funtion keys.  The bottom line (line 25)
          displays any errors which occur during compilation.  Lines
          3 through 24 are used for display/editing of your program.

          The DOS version of BasicBasic does not use a mouse for
          editing functions (though, if you have a mouse, you can
          use it in the programs you write).  All editor operations
          are available with a combination of keyboard keys.

          The best way to learn to use any editor is to use it.  The
          BasicBasic editor is fairly straight-forward.  F1 will
                                       7





                  Copyright (c) 1992, 1993 by Mark Davidsaver





          bring up a list of all special key combinations.  F3 opens
          a file for editing or compiling.  F8 compiles a program.
          F9 runs a program (and compiles, if necessary).  These are
          the most common special keys you will use.
          
          At this point open and compile or run some of the supplied
          sample programs (e.g. SAMPLE1.BAS).  F3-OPEN will ask you
          to enter the name of the program you want to open.  You
          can either type in the file name, including the extension,
          or use the TAB key to select a file from the file list
          box.  You use the up and down arrow keys to scroll through
          the file list box.  Remember that if you type in the file
          name you MUST supply the complete name, including
          extension (e.g. SAMPLE1.BAS).

          Here is a description of the editor special keys:

            Insert            Toggles between Overtype/Insert modes
          
            F1 Help           Displays a list of editor special keys

            F2 New            Closes any currently open file and
                              clears the screen.  You will be
                              prompted to save any changes.

            F3 Open           Displays a box to allow you to open a
                              file.  You may either type in the
                              complete file name or TAB to a file
                              list box and select file with the
                              arrow keys.  After highlighting the
                              file you want press ENTER.

            F4 SaveAs         Allows you to save the text you are
                              editing and specify a file name.

            Ctrl-F4 Save      Saves the text you are editing to the
                              same name you originally opened.

            F5 Exit           Exits the program.  You will be
                              prompted to save any changes.

            F6 Find           Displays a box to allow you to enter
                              text to find.  Upper/lower case are
                              ignored.  The search is from the
                              current position in the file.  To
                              search the entire file you must have
                              the start of the file displayed on the
                              screen.  The found string will be
                              highlighted and the display altered to
                              show the highlighted item on the first
                              display line.  If no match is found a
                              'BEEP' will be sounded.

            Ctrl-F6 Find Next Searches for the next occurence of the
                                       8





                  Copyright (c) 1992, 1993 by Mark Davidsaver





                              last search string you entered.

            F7 Next Error     If you have compiled a program and
                              there were errors in the compilation,
                              then the bottom line of the display
                              will display the error message. If
                              there is more than one error pressing
                              F7 will go to the next error message.
                              When an error message is displayed,
                              the corresponding source line will be
                              moved to the first display position if
                              applicable.

            F8 Compile        Compiles your current source and makes
                              an EXE file if there are no errors.

            F9 Compile & Run  Compiles your current source(only if
                              required) and then executes the
                              program.  When your program terminates
                              you will return to the editor.

            F10 About         Tells about BasicBasic.

            Up arrow
            Down arrow
            Left arrow
            Right arrow       Moves cursor around the screen.

            Insert            Changes between insert mode(small
                              cursor) and overwrite move (large
                              cursor)

            Delete            Deletes current character

            Ctrl-PgUp         Goes to first line of file.

            Ctrl-PgDn         Goes to last line of file.

            Shift-arrow key   Holding down the shift key while
                              pressing an arrow key will select text
                              for copying or cutting.

            Shift-Delete      Copies currently selected text to
                              clipboard.

            Ctrl-F1           If text is selected deletes all of
                              selected text and transfers to
                              clipboard.

            Shift-insert      Pastes from clipboard to screen.

            Home              Moves to beginning of line.

            End               Moves past last character in line.
                                       9





                  Copyright (c) 1992, 1993 by Mark Davidsaver








          RUNTIME ERRORS

            While executing a program you have entered you may
          receive a runtime error message.  The message will have
          two numbers; the first being an error number and the
          second being a runtime error address.  This manual
          contains a list of error numbers.  The runtime error
          address will show you what line had the error.

            Each time you compile your program BasicBasic creates a
          file which shows the runtime address for each line.  You
          can examine this file with the BasicBasic editor to find
          which line contains the address the address at which the
          runtime error occurs.  The file BasicBasic creates has the
          extension .TMP.  For example if you compile the program
          SAMPLE1.BAS, then BasicBasic will create the file
          SAMPLE1.TMP, which will have the runtime addresses.

          (Occasionaly you might want to delete all .TMP files from
          your BasicBasic directory to conserve disk space.)
          

          TOO BIG

          If you write very large programs there may not be room in
          memory to compile your program while the editor is
          running.  If you receive an error message saying not
          enough memory to compile you may need to exit the editor
          and compile seperately.  See the section on Seperate
          Compilation for instructions.

          IMPORTANT:  To run programs compiled with BasicBasic the
          runtime module must be present.  For DOS this is the file
	  BBL152.EXE.

















                                      10





                  Copyright (c) 1992, 1993 by Mark Davidsaver






          WINDOWS INSTRUCTIONS
          -------------------------------------------------------

          BasicBasic allows you to write programs using the BASIC
          programming language.  This programming language works the
          same in DOS or Windows.  The BasicBasic editor which
          allows you to enter your program is slightly different in
          DOS and Windows.  This section contains specific
          instructions on using the Windows version of BasicBasic.
          The preceding section contains similar instructions for
          DOS.

          (Note: If you do not want to use the BasicBasic editor,
          you do not have to.  See the section on Seperate
          Compilation for instructions on compiling programs entered
          with another editor)


          You may install the BasicBasic program in a program group.
          The file you want to install is WBBE.EXE.  Alternately you
          can select RUN from the program manager and execute
          WBBE.EXE.

          Once started you will see a standard Windows editing
          screen.  There is a menu bar at the top with available
          choices.  To compile and run a program (such as
          SAMPLE1.BAS) you would need to select OPEN from the file
          menu and then COMPILE & RUN from the Build menu.  Remember
          that you must enter the complete file name, including
          extension (e.g. SAMPLE1.BAS).

          The best way to learn any editor is to use it.  The
          BasicBasic editor is fairly straight-forward.  The  FILE
          menu contains an Open command.  The MAKE menu contains
          commands to compile and run your program.

          Here is a complete list of the Windows BasicBasic editor
          functions.:


            Insert Key         Toggles between Overtype/Insert modes


          FILE MENU

            New               Closes any currently open file and
                              clears the screen.  You will be
                              prompted to save any changes.

            Open              Displays a box to allow you to open a
                              file.  You may either type in the
                              complete file name or TAB to a file
                              list box and select file with the
                                      11





                  Copyright (c) 1992, 1993 by Mark Davidsaver





                              arrow keys.  After highlighting the
                              file you want press ENTER.

            SaveAs            Allows you to save the text you are
                              editing and specify a file name.

            Save              Saves the text you are editing to the
                              same name you originally opened.

            Exit              Exits the program.  You will be
                              prompted to save any changes.


          EDIT MENU

            The edit menu allows you to manipulate text you have
            selected.  You select text in the usual Windows fashion
            by holding down the mouse button as you move over the
            text you want to select.  Alternately you can use the
            arrow keys with the SHIFT key held down.


            Copy              Copies currently selected text to
                              clipboard.

            Cut               If text is selected deletes all of
                              selected text and transfers to
                              clipboard.

            Paste      Pastes from clipboard to screen.
                              

          SEARCH MENU

            Find              Displays a box to allow you to enter
                              text to find.  Upper/lower case are
                              ignored.  The search is from the
                              current position in the file.  To
                              search the entire file you must have
                              the start of the file displayed on the
                              screen.  The found string will be
                              highlighted and the display altered to
                              show the highlighted item on the first
                              display line.  If no match is found a
                              'BEEP' will be sounded.

            Find Next         Searches for the next occurence of the
                              last search string you entered.


          MAKE MENU

            Compile           Compiles your current source and makes
                              an EXE file if there are no errors.
                                      12





                  Copyright (c) 1992, 1993 by Mark Davidsaver





                              Control is returned to BasicBasic when
                              the compilation is complete.

            Compile & Run     Compiles your current source(only if
                              required) and then executes the
                              program.  If there are compilation
                              errors the program will not be
                              executed.  When your compiled program
                              is run it's window will be made the
                              top window, but the BasicBasic editor
                              will continue to run.

          OPTIONS MENU

             In there are errors in compilation BasicBasic will
             display an error windows at the bottom of the edit
             windows.  You can scroll through this window to examine

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -