home *** CD-ROM | disk | FTP | other *** search
- I have added a whole bunch of new stuff to BozoL, however I have not been
- able to document any of it yet. Since a few people have asked for it, I
- am uploading it here with the old documentation. Here is a brief and
- sloppy list of the things I added
-
- 1) All I/O is handled in the file BOZO_IO.BAS, so you can window it, run it
- through a modem, whatever.
-
- 2) Constants at the beginning define whether I/O is done directly, through
- BIOS or through DOS.
-
- 3) dBASE commands added:
-
- USE "datafile" - opens a dBASE file for use
- GET n - reads a certain record into memory variables
- PUT n - writes memory variables to record n, or appends if n is omitted
- CREATEFORMAT - routine creates a data entry screen format file
- CREATEINDEX "field" - routine creates an index file for "field"
- FORMAT - loads a screen format for view or edit
- VIEW - displays current rec with default screen or custom format
- EDIT - edits the current record
- EDIT n - edits record n
- APPEND - edits and appends a new record
- DELIMITED - returns a comma-delimited string of entire record
- INDEX "field" - sets an index that has been created with CREATEINDEX
- FIND "string" - searches the current index for "string" case insensative
- NEXT - skips 1 rec (in index if set)
- PREV,PREVIOUS - skips back 1 rec
- SKIP n - skips a specified number of records
- TOP,FIRST - goes to the first record (top if index set)
- BOTTOM,LAST - goes to the last record
- ISOPEN - returns true if database is open
- RECNUM,RECNO - returns current record number
- NUMFIELDS - returns the number of fields in the database
- COUNT - returns the number of records in the database
- INDEXFILE - returns the name of the current index file
- INDEXFIELD - returns the name of the current index field
- DBEND - returns true if current rec is the last rec
-
-
- other commands added:
-
- see CASE structure in *.CMD files for all commands in BozoL
-
- language changes:
-
- You may use AND and OR in logical expressions
-
- IF 1 AND 2:GOTO 3
-
- Strings can only be concantenated with the & symbol
-
- SET A TO B & C
-
- Except in PRINT, PROMPT or INPUT statements the & is not necessary
-
- PRINT A B C D "That's ALl!"
-
- is the same as PRINT A & B & C ... etc.
-
-
-
- BozoL - The Bozo Language!
- ==============================================================
- October 21, 1993 *** Erik Olson
-
- To run Bozol compile the file BOZOL.BAS and then run it from DOS
- or inside the PowerBASIC IDE.
-
- An example program has been put together called TEST.BOZ. To
- run this program, type RUN TEST.BOZ at the BozoL OK prompt.
-
- Or, you can type LOAD TEST.BOZ and then type LIST. There are
- several hundred lines in this program. To see a small part of
- it type LIST 1 TO 20. Then type RUN to make the program go.
-
- BozoL has just enough keywords to run simple programs. It is
- intended that you add your own statements and functions to
- make BozoL a useful language.
-
- FILES
- =====
-
- README - This file
- TEST.BOZ - BozoL language test program, displays doc file
- BOZOL.REF - BozoL language reference
- BOZOL.DOC - BozoL language guide
- -
- BOZOL.BAS - Mail BozoL program (compile this one)
- PREP.BAS - include file, preprocessor for interpreter
- CALC.BAS - recursive descent parsing routine
- ERRORMSG.BAS - error message data statements
- -
- CALC.CMD - commands related to math (calc, eval)
- VARIABLE.CMD - commands related to variables (let, set)
- LOGIC.CMD - commands related to logic (if, while, until)
- LOADRUN.CMD - commands related to program execution (load, run, etc)
- VIDEO_IO.CMD - commands related to i/o (print, input, etc)
- FLOW.CMD - commands related to program flow control (goto, gosub)
- FUNCTION.CMD - functions (ucase, left, inkey, chr, asc, etc)
-
- For more information on how to use BozoL contact me at PowerBASIC
- tech support (813) 625-1172, or leave me a compusponge message at
- 73141,1644 -Erik
-