home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BASIC / EBASIC.ZIP / EBASIC.HLP < prev    next >
Encoding:
Text File  |  1987-01-11  |  11.4 KB  |  360 lines

  1. Invoking BASIC-E
  2. BASIC-E Statements
  3. BASIC-E Functions
  4. Differences between BASIC-E and CBASIC
  5. BASIC-E Error Messages
  6. CBASIC:  Compiler Error Messages
  7. CBASIC:  Run-Time Error Messages -- Warnings
  8. CBASIC:  Run-Time Error Messages -- Error Codes
  9. :Invoking BASIC-E
  10.  
  11.      BASIC-E is invoked by typing the following --
  12.  
  13.           EBASIC filename $o
  14.  
  15. wherσá 'filenameº i≤ thσ namσ oµ thσ sourcσ filσ 'filename.BASº t∩á bσ ì
  16. compiled and 'o' is one or more of the following options --
  17.  
  18.           A    List Productions (for compiler debugging); normally OFF
  19.           B    List only source statements with errors; normally OFF
  20.           C    Check syntax only; don't create .INT file; normally OFF
  21.           D    Convert lowercase to uppercase; normally ON
  22.           E    Generate line number code; normally OFF
  23.  
  24.      After compilation, the program may then be executed by --
  25.  
  26.           ERUN filename
  27.  
  28. where 'filename' is the name of the intermediate code file 'filename.INT'.
  29. :BASIC-E Statements
  30.  
  31.      The following statements are valid in BASIC-E --
  32.  
  33.           FOR       NEXT      FILE      GOTO      LET  
  34.           CLOSE     GOSUB     INPUT     ON        PRINT
  35.           READ      RESTORE   RETURN    OUT       RANDOMIZE
  36.           STOP      DATA      DEF       DIM       END
  37.           IF        REM       ELSE      THEN
  38.  
  39. :BASIC-E Functions
  40.  
  41.      The following built-in functions are valid in BASIC-E --
  42.  
  43.           ABS       ASC       ATN       CHR$      COS
  44.           COSH      FRE       INP       INT       LEFT$
  45.           LEN       LOG       MID$      POS       RIGHT$
  46.           RND       SGN       SIN       SINH      STR$
  47.           SQR       TAB       TAN       VAL       EXP
  48.  
  49. :Differences between BASIC-E and CBASIC
  50.  
  51.      Thσá followinτá feature≤ arσ no⌠ availablσ iε BASIC-E¼á bu⌠á the∙á arσ ì
  52. available in CBASIC --
  53.  
  54.           1.  PEEK or POKE
  55.           2.  PRINT USINGè          3.  CALL to machine code programs
  56.           4.  LPRINT
  57.  
  58. :BASIC-E Error Messages
  59.  
  60.      Sincσá BASIC-┼ i≤ ß "subsetó oµ CBASIC¼á refe≥ t∩ thσ CBASI├ hel≡ filσ ì
  61. for information on the BASIC-E error messages.
  62.  
  63.      Most¼á bu⌠á no⌠ all¼á BASIC-┼ erro≥ message≤ arσ covereΣ iε thi≤á hel≡ ì
  64. file.
  65. :CBASIC:  Compiler Error Messages
  66.  
  67.                                Text Messages
  68.  
  69. NO SOURCE FILE:  <FILENAME>.BAS
  70.      Thσá compile≥ coulΣ no⌠ locatσ ß sourcσ filσ useΣ iε eithe≥á ßá CBASI├ ì
  71. command or an INCLUDE directive.
  72.  
  73. PROGRAM CONTAINS n UNMATCHED FOR STATEMENT(S)
  74.      There are n FOR statements for which a NEXT could not be found.
  75.  
  76. PROGRAM CONTAINS n UNMATCHED WHILE STATEMENT(S)
  77.      There are n WHILE statements for which a WEND could not be found.
  78.  
  79. WARNING:  INVALID CHARACTER IGNORED
  80.      Thσ previou≤ linσ contain≤ aε invaliΣ ASCI╔ character╗á thi≤ characte≥ ì
  81. is ignored by the compiler, and a question mark is printed in its place.
  82.  
  83.  
  84.  
  85.                            2-Letter Error Codes
  86.  
  87. CE -- Close Error
  88.      The intermediate (.INT) file could not be closed.
  89.  
  90. DE -- Disk Error
  91.      A disk error occurred while trying to read the .BAS file.
  92.  
  93. DF -- Disk Full
  94.      Therσá wa≤ n∩ spacσ oε thσ disδ o≥ thσ disδ director∙ wa≤á full«á  Thσ ì
  95. .INT file was not created.
  96.  
  97. DL -- Duplicate Line number
  98.      Thσ samσ linσ numbe≥ wa≤ useΣ oε tw∩ differen⌠ lines«á  Othe≥ compile≥ ì
  99. error≤á ma∙á causσ ß D╠ erro≥ messagσ t∩ bσ printeΣ eveε iµ duplicatσá linσ ì
  100. numbers do not exist.
  101.  
  102. DP -- Defined Previously
  103.      A variable in a DIM statement was previously defined.
  104.  
  105.  
  106. EF -- Exponential Format
  107.      ┴ numbe≥ iε exponentia∞ forma⌠ wa≤ inpu⌠ witΦ n∩ digit≤ followinτá thσ ì
  108. E.
  109.  
  110. FD -- Function Definition
  111.      ┴ functioε namσ tha⌠ ha≤ beeε previousl∙ defineΣ i≤ beinτ redefineΣ iε ì
  112. a DEF statement.
  113.  
  114. FI -- FOR Index
  115.      Aεá expressioε whicΦ i≤ no⌠ aε unsubscripteΣ numeriπ variablσ i≤ beinτ ì
  116. used as a FOR loop index.
  117.  
  118. FN -- Function parameter Number 
  119.      A function reference contains an incorrect number of parameters.
  120.  
  121. FP -- Function Parameter type
  122.      ┴ functioε referencσ paramete≥ typσ doe≤ no⌠ matcΦ thσ paramete≥á typσ ì
  123. used in the function's DEF statement.
  124.  
  125.  
  126. FU -- Function Undefined
  127.      A function has been referenced before it has been defined.
  128.  
  129. IE -- IF Expression
  130.      Aεá expressioεá useΣá immediatel∙ followinτ aε I╞á evaluate≤á t∩á typσ ì
  131. string.  Only type numeric is permitted.
  132.  
  133. IF -- In File
  134.      ┴á variablσá useΣá iε ß FIL┼ statemen⌠ i≤ oµ typσ numeriπá wherσá typσ ì
  135. string is required.
  136.  
  137. IP -- Input Prompt
  138.      An input prompt string is not surrounded by quotes.
  139.  
  140. IS -- Invalid Subscript
  141.      A subscripted variable was referenced before it was dimensioned.
  142.  
  143. IU -- Invalid Use
  144.      A variable defined as an array is used with no subscripts.
  145.  
  146.  
  147. MF -- Mixed Format
  148.      An expression evaluates to type string when type numeric is required.
  149.  
  150. MM -- Mixed Mode
  151.      Variable≤á oµá typσ strinτ anΣ typσ numeriπ arσ combineΣ iεá thσá samσ ì
  152. expression.
  153.  
  154. NI -- NEXT Index
  155.      ┴ variablσ referenceΣ b∙ ß NEX╘ statemen⌠ doe≤ no⌠ matcΦ thσá variablσ ì
  156. referenced by the associated FOR statement.
  157.  
  158. NU -- NEXT Unexpected
  159.      A NEXT statement occurs without an associated FOR statement.
  160.  
  161. OO -- ON Overflow
  162.      More than 25 ON statements were used in the program.
  163.  
  164.  
  165. SE -- Syntax Error
  166.      The source line contains a syntax error.
  167.  
  168. SN -- Subscript Number
  169.      A subscripted variable contains an incorrect number of subscripts.
  170.  
  171. SO -- Syntax Overflow
  172.      Thσá expressioε i≤ to∩ comple° anΣ shoulΣ bσ simplifieΣ anΣ placeΣá oε ì
  173. more than one line.
  174.  
  175. TO -- Table Overflow
  176.      Thσá prograφá i≤á to∩á largσ fo≥ thσá system«á  Thσá prograφá mus⌠á bσ ì
  177. simplified or the system size increased.
  178.  
  179. UL -- Undefined Line number
  180.      A line number that does not exist has been referenced.
  181.  
  182. US -- Undefined String
  183.      A string has been terminated by a carriage return rather than quotes.
  184.  
  185.  
  186. VO -- Variable Overflow
  187.      Variable names are too long for one statement.
  188.      This should not occur.
  189.  
  190. WE -- WHILE Error
  191.      The expression immediately following a WHILE statement is not numeric.
  192.  
  193. WU -- WHILE Undefined
  194.      A WEND statement occurs without an associated WHILE statement.
  195. :CBASIC:  Run-Time Error Messages -- Warnings
  196.  
  197.      Tw∩ textua∞ run-timσ erro≥ message≤ arσ presenteΣ b∙ CRUN:
  198.  
  199. NO INTERMEDIATE FILE
  200.      ┴á filσ namσ wa≤ no⌠ specifieΣ witΦ thσ CRU╬ command¼á o≥ n∩á filσá oµ ì
  201. typσ .IN╘ anΣ thσ specifieΣ filσ namσ wa≤ founΣ oε disk.
  202.  
  203. IMPROPER INPUT - REENTER
  204.      Thi≤á messagσá occur≤ wheε thσ field≤ entereΣ froφ thσ consolσ d∩á no⌠ ì
  205. matcΦá thσá fielΣ specifieΣ iε thσ INPU╘ statement«á  Thi≤ caεá occu≥á wheε ì
  206. fielΣ type≤ d∩ no⌠ matcΦ o≥ thσ numbe≥ oµ field≤ entereΣ i≤ differen⌠á froφ ì
  207. thσá numbe≥á oµá field≤á specified«á  Al∞ field≤á specifieΣá b∙á thσá INPU╘ ì
  208. statemen⌠ mus⌠ bσ reentered.
  209.  
  210.                      2-Letter Warning Codes
  211.  
  212. DZ -- Divide by Zero
  213.      ┴ numbe≥ wa≤ divideΣ b∙ zero«á  Thσ resul⌠ i≤ se⌠ t∩ thσ larges⌠ valiΣ ì
  214. CBASI├ number.
  215.  
  216. FL -- Field Length
  217.      ┴á fielΣá lengtΦ greate≥ thaε 25╡ byte≤ wa≤ encountereΣ durinτ ßá REA─ ì
  218. LINE«  Onl∙ thσ firs⌠ 25╡ character≤ oµ thσ recorΣ arσ retained.
  219.  
  220. LN -- Logarithm error
  221.      Thσá argumen⌠á giveε iε thσ LO╟ functioε wa≤ zer∩á o≥á negative«á  Thσ ì
  222. valuσ oµ thσ argumen⌠ i≤ returned.
  223.  
  224. NE -- NEgative number
  225.      ┴á negativσá numbe≥á wa≤á specifieΣ followinτ thσá raisσá t∩á ßá powe≥ ì
  226. operato≥ (^)«  Thσ absolutσ valuσ i≤ useΣ iε thσ calculation.
  227.  
  228.  
  229. OF -- OverFlow
  230.      ┴ calculatioε produceΣ ß numbe≥ to∩ large«á  Thσ resul⌠ i≤ se⌠ o⌠á thσ ì
  231. larges⌠ valiΣ CBASI├ number.
  232.  
  233. SQ -- SQuare root error
  234.      ┴á negativσá numbe≥ wa≤ specifieΣ iε thσ SQ╥ function«á  Thσá absolutσ ì
  235. valuσ i≤ used.
  236. :CBASIC:  Run-Time Error Messages -- Error Codes
  237.  
  238. AC -- AsCii error
  239.      Thσ strinτ useΣ a≤ thσ argumen⌠ iε aε AS├ functioε evaluateΣ t∩ ß nul∞ ì
  240. string.
  241.  
  242. CE -- Close Error
  243.      An error occurred upon closing a file.
  244.  
  245. CU -- Close Undefined file 
  246.      ┴ closσ statemen⌠ specifieΣ ß filσ numbe≥ tha⌠ wa≤ no⌠ active.
  247.  
  248. DF -- Defined File
  249.      Aεá OPE╬ o≥ CREAT┼ wa≤ specifieΣ witΦ ß filσ numbe≥ tha⌠á wa≤á alread∙ ì
  250. active.
  251.  
  252. DU -- Delete Undefined file
  253.      ┴ DELET┼ statemen⌠ specifieΣ ß filσ numbe≥ tha⌠ wa≤ no⌠ active.
  254.  
  255.  
  256. DW -- Disk Write error
  257.      Aεá erro≥ occurreΣ whilσ writinτ t∩ ß file«á  Thi≤ occur≤ wheεá eithe≥ ì
  258. thσ director∙ o≥ thσ disδ i≤ full.
  259.  
  260. EF -- End of File
  261.      ┴á reaΣá pas⌠ thσ enΣ oµ filσ occurreΣ oε ß filσ fo≥ whicΦ n∩á I╞á EN─ ì
  262. statemen⌠ ha≤ beeε executed.
  263.  
  264. ER -- Error in Record
  265.      Aεá attemp⌠á wa≤á madσ t∩ writσ ß recorΣ oµ lengtΦá greate≥á thaεá thσ ì
  266. maximuφá recorΣá sizσ specifieΣ iε thσ associateΣá OPEN¼á CREATE¼á o≥á FIL┼ ì
  267. statement.
  268.  
  269. FR -- File Rename
  270.      Aε attemp⌠ wa≤ madσ t∩ renamσ ß filσ t∩ aε existinτ filσ name.
  271.  
  272. FU -- File Undefined
  273.      Aε attemp⌠ wa≤ madσ t∩ reaΣ o≥ writσ t∩ ß filσ tha⌠ wa≤ no⌠ active.
  274.  
  275.  
  276. IR -- Invalid Record number
  277.      A record number less than one was specified.
  278.  
  279. LW -- Line Width
  280.      ┴á linσá widtΦá les≤ thaε ▒ o≥ greate≥ thaε 13│ wa≤á specifieΣá iεá aε ì
  281. LPRINTE╥ WIDT╚ statement.
  282.  
  283.  
  284. ME -- MAKE Error
  285.      Aεá erro≥ occurreΣ whilσ creatinτ o≥ extendinτ ß filσ becausσ thσ disδ ì
  286. director∙ wa≤ full.
  287.  
  288. MP -- MATCH Parameter
  289.      Thσ thirΣ paramete≥ iε ß MATC╚ functioε wa≤ zer∩ o≥ negative.
  290.  
  291. NF -- Number of FILE
  292.      Thσ filσ numbe≥ specifieΣ wa≤ les≤ thaε ▒ o≥ greate≥ thaε 20.
  293.  
  294.  
  295. NM -- No Memory
  296.      There was insufficient memory to load the program.
  297.  
  298. NN -- No Number field
  299.      Aε attemp⌠ wa≤ madσ t∩ prin⌠ ß numbe≥ witΦ ß PRIN╘ USIN╟ statemen⌠ bu⌠ ì
  300. therσ wa≤ no⌠ ß numeriπ datß fielΣ iε thσ USIN╟ string.
  301.  
  302. NS -- No String field
  303.      Aε attemp⌠ wa≤ madσ t∩ prin⌠ ß strinτ witΦ ß PRIN╘ USIN╟ statemen⌠ bu⌠ ì
  304. therσ wa≤ no⌠ ß strinτ fielΣ iε thσ USIN╟ string.
  305.  
  306. OD -- Overflow Data
  307.      ┴á REA─á statemen⌠ wa≤ executeΣ witΦ n∩ DAT┴ available.
  308.  
  309. OE -- OPEN Error
  310.      Aε attemp⌠ wa≤ madσ t∩ OPE╬ ß filσ tha⌠ didn'⌠ exis⌠ anΣ fo≥ whicΦá n∩ ì
  311. I╞ EN─ statemen⌠ haΣ beeε previousl∙ executed.
  312.  
  313.  
  314. OI -- ON Index
  315.      Thσá expressioεá specifieΣá iεá aε O╬ ..«á GOSU┬ o≥á aεá O╬á ..«á GOT╧ ì
  316. statemen⌠á evaluateΣ t∩ ß numbe≥ les≤ thaε ▒ o≥ greate≥ thaε thσ numbe≥á oµ ì
  317. linσ number≤ containeΣ iε thσ statement.
  318.  
  319. OM -- Overflow Memory
  320.      The program ran out of memory during execution.
  321.  
  322. QE -- Quote Error
  323.      Aε attemp⌠ wa≤ madσ t∩ PRIN╘ t∩ ß filσ ß strinτ containinτ ß quotatioε ì
  324. mark.
  325.  
  326. RE -- READ Error
  327.      Aε attemp⌠ wa≤ madσ t∩ reaΣ pas⌠ thσ enΣ oµ ß recorΣ iε ß fixeΣ file.
  328.  
  329. RG -- RETURN with no GOSUB
  330.      A RETURN occurred for which there was no GOSUB.
  331.  
  332.  
  333. RU -- Random Undefined
  334.      ┴ randoφ reaΣ o≥ prin⌠ wa≤ attempteΣ t∩ othe≥ thaε ß fixeΣ file.
  335.  
  336. SB -- SuBscript
  337.      Aεá arra∙ subscrip⌠ wa≤ useΣ whicΦ exceedeΣ thσ boundarie≤á fo≥á whicΦ ì
  338. thσ arra∙ wa≤ defined.
  339.  
  340. SL -- String Length
  341.      ┴ concatenatioε operatioε resulteΣ iε ß strinτ oµ morσ thaε 25╡ bytes.
  342.  
  343. SS -- SubString error
  344.      Thσ seconΣ paramete≥ oµ ß MIDñ functioε wa≤ zer∩ o≥ negative.
  345.  
  346. TF -- Too many Files
  347.      Aε attemp⌠ wa≤ madσ t∩ havσ morσ thaε 2░ activσ file≤ simultaneously.
  348.  
  349.  
  350. TL -- TAB Length
  351.      ┴á TA┬ statemen⌠ containeΣ ß paramete≥ les≤ thaε ▒ o≥ greate≥ thaε thσ ì
  352. curren⌠ linσ width.
  353.  
  354. UN -- UNdefined edit string
  355.      ┴ PRIN╘ USIN╟ statemen⌠ wa≤ executeΣ witΦ ß nul∞ edi⌠ string.
  356.  
  357. WR -- WRite error
  358.      Aεá attemp⌠ wa≤ madσ t∩ writσ t∩ ß filσ afte≥ i⌠ haΣá beeεá read¼á bu⌠ ì
  359. beforσ i⌠ haΣ beeε reaΣ t∩ thσ enΣ oµ thσ file.
  360.