home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / apl / ratapl / prolog.err < prev    next >
Text File  |  1988-06-20  |  33KB  |  901 lines

  1. 3   Illegal keyword.
  2. Recognized keywords are:
  3.   DATABASE, PREDICATES, DOMAINS, CLAUSES, GOAL, GLOBAL,
  4.   INCLUDE, CONSTANTS
  5. and the options are:
  6.   check_determ, nobreak, nowarnings, diagnostics
  7.   trace, shorttrace, code, trail, errorlevel, project
  8. #
  9. 4   Use the format CODE=dddd, TRAIL=dddd, HEAP=dddd or ERRORLEVEL=d.
  10. Ex
  11.   code=4000  trail=1000  heap=6000  errorlevel=1
  12. #
  13. 5   The trail size cannot exceed 4000 paragraphs (corresponding to 64K).
  14. #
  15. 6   The code size cannot exceed 16000 paragraphs (corresponding to 256K).
  16. #
  17. 7   The errorlevel must be either 0, 1 or 2.
  18. #
  19. 10  Illegal character.
  20. Legal characters are upper and lower case letters, digits and the
  21. characters :-+!"'/*()[]|><=.,;
  22. #
  23. 11  Character constants must be terminated with an apostrophe (')
  24. Eg 'a' and '\254'
  25. #
  26. 12  The comment is not terminated by */
  27. An end of source has been encountered within a comment. 
  28. This may be caused by nested comments.
  29. #
  30. 14  The name is too long. (max. 250 characters)
  31. #
  32. 15  The string is too long. (max. 250 characters)
  33. #
  34. 16  The string must be terminated with a double quote (") in the same line.
  35. If you need newline characters in a string, use \n as in "First\n Next".
  36. If you need a string with more than 250 characters, use 'concat' to
  37. assemble it from shorter strings.
  38. #
  39. 17  Real constant is out of range.
  40. The valid range is: +-17976931348E+-308
  41. #
  42. 18  A hexadecimal digit is expected after a dollar sign.
  43. Eg X=$B800
  44. #
  45. 20  Constant identifier expected.
  46. An 'ifdef' or an 'ifndef' should be followed by the controlling constant
  47. identifier.
  48. #
  49. 21  'enddef' expected; unterminated 'ifdef' or 'ifndef' block.
  50. #
  51. 22  End of text in an unterminated ifdef-block.
  52. #
  53. 23  Too many nested conditional blocks (max. 25).
  54. #
  55. 100 Undeclared domain or misspelling.
  56. #
  57. 102 Standard domains cannot be declared.
  58. The standard domains are always considered to be declared, and cannot be
  59. redeclared even if they aren't used in the program.
  60. #
  61. 103 This domain was declared previously.
  62. #
  63. 104 Syntax error:  =  or  ,  expected.
  64. #
  65. 105 Name expected (either a domain or a functor).
  66. #
  67. 106 Alternatives in a list declaration are illegal.
  68. The only format for a list declaration is
  69.  
  70.   dom1, dom2, dom3 = otherdom*
  71.  
  72. However, there's nothing preventing 'otherdom' from being a compound
  73. domain including different types, surrounded by functors of your
  74. choice, as in eg.
  75.  
  76.   otherdom = i(integer); s(string); r(real)
  77. #
  78. 107 This functor has already been used in the domain declaration.
  79. A functor can only appear once in every domain declaration.
  80. #
  81. 108 Functor name expected.
  82. After the ';' a new functor name is expected.
  83. #
  84. 109 Domain name expected.
  85. #
  86. 110 Syntax error in domain declaration.  )  or  ,  expected.
  87. #
  88. 111 WARNING: Domain used as a functor. (F10=Ok, Esc=Abort).
  89. This name is also the name of a domain. If this isn't a mistake, you
  90. can avoid the warning by succeeding the functor with two brackets as
  91. in 'integer()'.
  92. #
  93. 112 WARNING: Domain declaration with a single functor. (F10=Ok, Esc=Abort).
  94. This declaration is understood as a domain with just a single functor,
  95. which is rarely used.
  96. #
  97. 113 This constant is already defined.
  98. #
  99. 201 This name is reserved for a standard predicate.
  100. It is not possible to redefine standard predicates.
  101. #
  102. 202 This predicate is already declared.
  103. Alternative declarations for the same predicate should be grouped.
  104. #
  105. 204 Domain name  or  ')'  expected.
  106. #
  107. 205 Undeclared domain or misspelling.
  108. #
  109. 206 Too many arguments used in this predicate.
  110. The maximum is 50.
  111. #
  112. 208 Syntax error in predicate declaration,  ')'  or  ',' expected.
  113. #
  114. 209 Illegal number of arguments.
  115. There is no declaration for the predicate with this number of arguments.
  116. #
  117. 210 Only one database predicate declaration is allowed.
  118. Database predicates can only have one type declaration.  If you
  119. want to assert different types, you should use different predicates or
  120. declare a suitable compound domain.
  121. #
  122. 211 This predicate is declared as a database predicate.
  123. Predicates declared in the DATABASE section must consist entirely of
  124. facts, without using variables.
  125. #
  126. 220 Syntax error in declaration of global predicate, '-' expected.
  127. All global predicates must be followed by one or more flow pattern
  128. specifications, as in
  129. GLOBAL PREDICATES
  130.   determ status_RS232(integer,integer) - (i,o),(o,i) language c
  131. #
  132. 221 Syntax error, '(' expected.
  133. The flow pattern declaration should follow the syntax indicated in the
  134. example below:
  135. GLOBAL PREDICATES
  136.   determ status_RS232(integer,integer) - (i,o),(o,i) language c
  137. #
  138. 222 Syntax error in flow pattern, 'i' or 'o' expected.
  139. The flow pattern for each argument should be indicated by an 'i' for
  140. input flow or an 'o' for output flow, as illustrated below:
  141. GLOBAL PREDICATES
  142.   determ status_RS232(integer,integer) - (i,o),(o,i) language c
  143. #
  144. 223 Wrong number of arguments in flow pattern.
  145. All the alternative flow patterns must have the same number of
  146. arguments as the type declaration for the predicate.
  147. #
  148. 224 Syntax error in declaration of global predicate, 'as "NewName"' expected.
  149. The syntax for explicitly naming an external routine is suggested below:
  150.  
  151.    determ routine(integer) - (i) language c as "MyRoutine"
  152.  
  153. Don't forget the double quotes around the name.
  154. #
  155. 226 Syntax error, 'PREDICATES', 'DOMAINS' or 'DATABASE' expected.
  156. The keyword 'GLOBAL' must be followed by the name of the section you
  157. want to declare as global.
  158. #
  159. 227 Name of project or configuration file expected.
  160. The directives 'project' and 'config' must be followed by a file name, eg.
  161.  
  162.   project "parser"
  163.   config "myconfig.sys"
  164.  
  165. A configuration file is created by the 'Save configuration' under
  166. the 'Setup'-option.
  167. #
  168. 228 At most one internal goal may be specified.
  169. A 'GOAL' section has already been encountered. If there isn't one in
  170. this file, it may have come from an included file.
  171. #
  172. 229 The include file does not exist in the specified directory.
  173. If the file really does exist you probably fell foul to a very common
  174. omission, namely to use double backslashes to override the escape-function
  175. of backslashes in strings:
  176.  
  177. include "\\tools\\tpreds.pro"
  178. #
  179. 230 Include files may not be used recursively.
  180. This include file is already included.
  181. #
  182. 231 Too many include files. The maximum is 24.
  183. #
  184. 232 The include file is too big. Max. size is 64K.
  185. #
  186. 233 Global declarations cannot succeed local declarations.
  187. All global declarations must be done before any local declarations.
  188. A predicate, clause or domain section which is not preceded by the
  189. keyword 'GLOBAL' is considered a local declaration, and cannot be
  190. succeeded by any global declarations.
  191.  
  192. This strategy has been changed since version 1.x of the system.
  193. #
  194. 234 No modules in the project contains a GOAL.
  195. #
  196. 235 The FILE domain cannot be a local domain in a project.
  197. Simply declare the domain in a global section.
  198. #
  199. 236 The unnamed database must be global in a project.
  200. Simply declare the database as 'GLOBAL'.
  201. #
  202. 237 Name of include-file expected.
  203. #
  204. 401 No clauses for this predicate.
  205. The predicate has been declared, but there are no corresponding clauses.
  206.  
  207. If this file is part of a project, note that it is posible to test
  208. project modules interactively, but you must not refer to any of the
  209. global predicates whose clauses are defined in other modules.
  210. #
  211. 402 Syntax error, ',' or '.' expected in clause body.
  212. #
  213. 403 Predicate name or section keyword expected.
  214. #
  215. 404 Undeclared predicate or misspelling.
  216. #
  217. 405 '('  expected.
  218. #
  219. 406 ')' or ',' expected.
  220. #
  221. 407 Illegal number of arguments: refer to declaration.
  222. #
  223. 408 Number expected after '+' or '-'.
  224. #
  225. 409 Syntax error.
  226. #
  227. 410 Variable expected.
  228. #
  229. 411 ',' expected.
  230. #
  231. 413 Syntax error, ',' '|' or ']' expected.
  232. #
  233. 414 Constant or variable expected.
  234. #
  235. 415 Clauses for the same predicate should be grouped.
  236. Clauses for this predicate have already appeared elsewhere.
  237. #
  238. 416 Comparison operator expected i.e. one of  =   <   <=   >=   ><   <>.
  239. #
  240. 417 Text after '.' is illegal here.
  241. #
  242. 418 Unexpected end of text.
  243. #
  244. 419 Syntax error in clause body, predicate call expected.
  245. #
  246. 420 WARNING: The variable is only used once. ( F10=Ok, Esc=abort ).
  247.  
  248. You can turn this warning off by using the 'nowarning' option.
  249. #
  250. 422 '.' ':-' or expected.
  251. #
  252. 423 ',' or ')' expected.
  253. #
  254. 425 Lists should be terminated by ']'.
  255. #
  256. 426 Initializing the global database is not allowed in a sub module.
  257. It is only allowed to define facts for a database that is declared in
  258. the same module. This means that all global database facts must be 
  259. initialized in the main module.
  260.  
  261. The distinction between a main module and a sub module is only that the
  262. main module contains a goal.  If this error occurred in the main module,
  263. it is therefore caused by an attempt to initialize the database before
  264. the goal has been defined, in which case the compiler is still unaware
  265. that it is the main module.  To rectify, simply move the goal to a
  266. position before the initialization of the database.
  267. #
  268. 427 To generate an object module the program must contain a goal.
  269. If you want to compile a single module to an OBJ file, the module
  270. must either contain a goal or be part of a project.
  271. #
  272. 428 The free variable in 'findall' can only be used inside 'findall'.
  273. #
  274. 429 The free variable in 'findall' does not occur in the predicate.
  275. An example of use of 'findall' is:
  276.   findall(NAME,person(NAME,_,_),L),
  277. #
  278. 430 Language name expected.
  279. After the 'language' directive, the name of the language must be
  280. specified, as indicated below:
  281. GLOBAL PREDICATES
  282.   determ status_RS232(integer,integer) - (i,o),(o,i) language c
  283. #
  284. 431 Unknown language. Must be one of: pascal, fortran, c, asm.
  285. #
  286. 432 Database name expected.
  287. To give a database a name the 'DATABASE' keyword should be followed
  288. by a hyphen and the name, as indicated below:
  289.  
  290. DATABASE - lineinp
  291.   insmode
  292.   lineinpstate(string,col)
  293.   lineinpflag
  294. #
  295. 433 The domain is already defined.
  296. A database declaration automatically generates a corresponding domain
  297. declaration ('dbasedom' for the global database), where the name of the
  298. domain is the name of the database.
  299. It is not allowed to declare a database with the same name as a
  300. previously declared domain.
  301. #
  302. 434 The database is already declared.
  303. The main (global) database is already declared. In order to declare a
  304. new (local) database, you must give it a name, eg:
  305.  
  306. DATABASE - lineinp
  307.   insmode
  308.   lineinpstate(string,col)
  309.   lineinpflag
  310. #
  311. 435 This must be the first occurence of the Errorcode variable.
  312. The Errorcode variable is neither allowed to be bound before the 'trap'
  313. predicate nor can it be an output argument of the controlled predicate.
  314. The first occurence of the variable must be as the return variable
  315. for the error-code, inside the 'trap' predicate.
  316. #
  317. 450 Syntax error, keyword expected.
  318. #
  319. 500 Type error.
  320. #
  321. 501 Free variable in expression.
  322. This is the first occurrence of the variable.
  323. #
  324. 504 This is the first occurrence of this variable.
  325. 'bound' cannot return a bound variable. Use instead the equal sign
  326. to bind the variable to a constant.
  327. #
  328. 505 Type error: Illegal variable type for this position.
  329. The type associated with the variable does not match with any of
  330. the type declarations for the predicate.
  331. #
  332. 506 Type error: The functor does not belong to the domain.
  333. #
  334. 507 Type error: The compound object has the wrong number of arguments.
  335. #
  336. 508 Expressions may not contain objects of this type.
  337. #
  338. 509 Comparisons may only be made between the basic types.
  339. #
  340. 510 Objects from these domains cannot be compared.
  341. #
  342. 511 There is no corresponding list domain.
  343. To use 'findall', a suitable list domain must be declared in
  344. the domain section.
  345. #
  346. 512 Type error: Wrong object type.
  347. #
  348. 513 Type error: This argument can't be a real.
  349. In DIV and MOD, both the arguments must be integer values.
  350. #
  351. 590 WARNING: nondeterministic clause. ( F10=Ok, Esc=abort ).
  352. There is one or more clauses with the same entry conditions (matching
  353. argument lists or no arguments at all) as this clause, and possible
  354. backtracking will lead to new solutions as the clause doesn't
  355. contain a cut.
  356.  
  357. Use 'nondeterm' before the predicate declaration if it's supposed to be
  358. nondeterministic.
  359. #
  360. 591 WARNING: nondeterministic predicate. ( F10=Ok, Esc=abort ).
  361. The predicate indicated is nondeterministic, ie it may succeed again
  362. if backtracking occurs.  This will be reflected in the calling
  363. predicate, which also becomes nondeterministic.
  364. Note that database predicates are, by their nature, nondeterministic;
  365. this will therefore also apply to all uses of 'retract'.
  366.  
  367. Use nondeterm before the predicate declaration if it is OK.
  368. #
  369. 592 ERROR nondeterministic clause in deterministic global predicate.
  370. There is one or more clauses with the same entry conditions (matching
  371. argument lists or no arguments at all) as this clause, and possible
  372. backtracking will lead to new solutions as the clause doesn't
  373. contain a cut.
  374.  
  375. Use 'nondeterm' before the predicate declaration if it's supposed to be
  376. nondeterministic.
  377. #
  378. 593 ERROR nondeterministic predicate call in deterministic global predicate.
  379. The predicate indicated is nondeterministic, ie it may succeed again
  380. if backtracking occurs.  This will be reflected in the calling
  381. predicate, which also becomes nondeterministic.
  382. Note that database predicates are, by their nature, nondeterministic;
  383. this will therefore also apply to all uses of 'retract'.
  384.  
  385. Use nondeterm before the predicate declaration if it's supposed to be
  386. nondeterministic.
  387. #
  388. 600 Too many domain names, maximum is 250.
  389. Split the program into separate modules with local domain declarations.
  390. #
  391. 601 Too many alternatives in the domain declaration, maximum is 250.
  392. #
  393. 602 Too many predicate names, maximum in one module is 320.
  394. This includes both predicate and database declarations, and the
  395. different flow pattern variants for each predicate.
  396. Split the module into two or more sub-modules.
  397. #
  398. 603 Too many variables in this clause, maximum is 100.
  399. Split the clause into two or more separate clauses.
  400. #
  401. 604 Too many predicate calls in this clause, maximum is 100.
  402. Split the clause into two or more separate clauses.
  403. #
  404. 605 Too many clauses, maximum is 400 for each predicate.
  405. Split the predicate into two or more predicates.
  406. #
  407. 606 Too many arguments, maximum is 50.
  408. Combine some of the arguments with functors from a suitable domain.
  409. #
  410. 607 Too many domain names on the left hand side of a domain declaration.
  411. Maximum is 20.
  412. #
  413. 608 Too many database predicates.
  414. Maximum is 250 in each database declaration.
  415. If you  need more than this, declare some of the predicates in one or
  416. more local databases.
  417. #
  418. 610 Code array too small.
  419. Use code=size to get more space.
  420. #
  421. 612 Overflow: too many structures in clause.
  422. Split the clause into two or more clauses.
  423. #
  424. 614 Overflow in generation of OBJ module.
  425. Split the module into two or more separately compiled modules.
  426. #
  427. 620 Error reading symbol table.
  428. Something is wrong with the file <projectname>.SYM
  429. Recompile the module(s) or project.
  430. #
  431. 701 Loop in the flow analysis. Don't use a compound flow pattern here.
  432. The problem is that the compiler has gone into a loop where it
  433. continues to generate new flow variants with more and more complex
  434. flow patterns.
  435.  
  436. If it is not an error in the program, replace the argument with a
  437. variable and do the unification before or after the predicate call,
  438. whatever is the appropriate.
  439. #
  440. 703 This flow pattern doesn't exist. (Look in the message window)
  441. You  have tried to call a standard or a global predicate with a flow
  442. pattern which isn't recognised, either because it doesn't exist, in the
  443. case of a standard predicate, or, in the case of a global predicate,
  444. because it isn't declared.
  445. The error may be caused from a higher level, where a variable which
  446. was meant as an input argument is used as an output argument, perhaps
  447. with an underscore.  In this case you must try to follow the calls
  448. backward.
  449. #
  450. 704 Free variable are not allowed in 'not' or 'retractall'.
  451. It is not possible to get a variable bound in a 'not' or a 'retractall'
  452. call, so you must use underscores for all unknown arguments.
  453. #
  454. 705 Free variables are not allowed here.
  455. 'assert', 'writef' and 'format' etc. requires that all variables are
  456. bound before the call. (Only 'write' will display a free variable as an
  457. underscore).
  458. #
  459. 706 The list variable in 'findall' must be free.
  460. If it is necessary to compare the result of a call to 'findall' with
  461. an existing list, call 'findall' with a free variable and do the
  462. comparison after the call, as in
  463.  
  464.         findall(X,p(X),Lnew), L=Lnew,
  465. #
  466. 707 Free variable in expression.
  467. Arithmetic expressions cannot be evaluated if they contain free
  468. variables.
  469. #
  470. 708 WARNING: The variable is not bound in this clause. (F10=ok, Esc=abort)
  471. When an output variable is not bound in a clause, it will be bound
  472. to a free reference variable. This requires that the whole domain
  473. to which the variable belongs is handled as a reference domain.
  474. Avoid this if there is no need for it, as the use of reference
  475. variables generates more code.
  476. #
  477. 709 WARNING: Two free variables in expression. (F10=ok, Esc=abort)
  478. This will cause the two variables to be bound to the same free
  479. reference variable.
  480. Avoid this if there is no need for it, as the use of reference
  481. variables generates more code.
  482. #
  483. 710 WARNING: Variable used twice with output flow pattern. (F10=ok,Esc=abort)
  484. The variable is used twice as an output variable in a predicate call.
  485. This will cause the variable to be bound to a free reference variable
  486. before the call is done, and both arguments where the variable is used
  487. will become input arguments (with a reference variable).
  488. Avoid this if there is no need for it, as the use of reference
  489. variables generates more code.
  490. #
  491. 711 WARNING: This will create a free variable.  ( F10=Ok, Esc=abort ).
  492. Using the first occurrence of a variable as an argument to 'free' will
  493. cause the variable to be bound to a free reference variable.
  494. This can be used to generate less flow variants, but will force the
  495. domain to which the variable belongs to become a reference domain.
  496. Avoid this if there is no need for it, as the use of reference
  497. variables generates more code.
  498. #
  499. 712 The variable is not bound in this clause.
  500. When an output variable is not bound in a clause, it will be bound
  501. to a free reference variable. 
  502. In a project all reference domains must be declared; the compiler
  503. cannot automatically generate these when needed, as a project will
  504. typically consist of several modules compiled from time to time.
  505. To rectify, either rewrite the code so as to avoid the use of reference
  506. variables or declare a reference domain for the variable.
  507. The latter should be avoided if there is no need for it, as the use of
  508. reference variables generates more code.
  509. #
  510. 713 Two free variables in expression.
  511. This will cause the two variables to be bound to the same free
  512. reference variable.
  513. In a project all reference domains must be declared; the compiler
  514. cannot automatically generate these when needed, as a project will
  515. typically consist of several modules compiled from time to time.
  516. To rectify, either rewrite the code so as to avoid the use of reference
  517. variables or declare a reference domain for the variables.
  518. The latter should be avoided if there is no need for it, as the use of
  519. reference variables generates more code.
  520. #
  521. 714 Variable used twice with output flow pattern.
  522. The variable is used twice as an output variable in a predicate call.
  523. This will cause the variable to be bound to a free reference variable
  524. before the call is done, and both arguments where the variable is used
  525. will become input arguments (with a reference variable).
  526. However, in a project all reference domains must be declared; the
  527. compiler cannot automatically generate these when needed, as a project
  528. will typically consist of several modules compiled from time to time.
  529. To rectify, either rewrite the code so as to avoid the use of reference
  530. variables or declare a reference domain for the variables.
  531. The latter should be avoided if there is no need for it, as the use of
  532. reference variables generates more code.
  533. #
  534. 715 This will create a free variable.
  535. Using the first occurrence of a variable as an argument to 'free' will
  536. cause the variable to be bound to a free reference variable.
  537. This can be used to generate less flow variants, but will force the
  538. domain to which the variable belongs to become a reference domain.
  539. However, in a project all reference domains must be declared; the
  540. compiler cannot automatically generate these when needed, as a project
  541. will typically consist of several modules compiled from time to time.
  542. To rectify, either rewrite the code so as to avoid the use of reference
  543. variables or declare a reference domain for the variables.
  544. The latter should be avoided if there is no need for it, as the use of
  545. reference variables generates more code.
  546. #
  547. 716 This argument can only be an input argument.
  548. Look in the manual for the flowpatterns of the predicate!.
  549. #
  550. 717 This argument can only be an output argument.
  551. Look in the manual for the flowpatterns of the predicate!.
  552. #
  553. 718 The domain refers to global non-reference domains.
  554. When a domain becomes a reference domain, all underlying domains
  555. must also be reference domains. When a local domain in a project
  556. is declared as a reference domain, it must therefore not refer to
  557. any global non-reference domains.
  558. #
  559. 719 Reference to a standard domain, which may not become a reference domain.
  560. When a domain becomes a reference domain, all underlying domains also
  561. becomes reference domains.  However, the standard domains FILE,
  562. DB_SELECTOR, BT_SELECTOR, REG, BGI_ILIST and PLACE can for technical
  563. reasons not become reference domains.
  564. #
  565. 1000 The arguments in 'makewindow' are illegal.
  566. Check that
  567.       - the window number is in the range 1 .. 127
  568.       - StartRow+NoOfRows <= no. of rows on screen (usually 25 or 43)
  569.       - StartCol+NoOfCols <= no. of cols on screen (usually 80 or 120)
  570. #
  571. 1001 The cursor values are illegal.
  572. The Row and Column must be inside the actual window.
  573. #
  574. 1002 Stack overflow. Re-configure with Options if necessary.
  575. It may be a help to re-compile the program with the option
  576. 'check_determ' turned on in order to check that no unnecessary
  577. backtrack points are stacked, as these increase stack consumption
  578. quite considerably.
  579. #
  580. 1003 Heap overflow. Not enough memory or an endless loop.
  581. #
  582. 1004 Arithmetic overflow in real operation.
  583. The range for reals is  -1.0e308 .. 1.0e308.
  584. #
  585. 1005 The window referred to is unknown.
  586. The window specified doesn't exist, either because it's never been
  587. created or because it's been removed before the current call to
  588. 'shiftwindow' or 'gotowindow'.
  589. #
  590. 1006 There isn't enough room in the editor for the text.
  591. The maximum text size is 64K.
  592. #
  593. 1007 Heap overflow. Not enough memory or an endless loop.
  594. #
  595. 1008 Arithmetic overflow in integer operation.
  596. The result cannot be stored in a 16-bit integer, which has a range
  597. of -32768 .. 32767.
  598. #
  599. 1009 Trail overflow. Use trail=size to get more space.
  600. The trail is only used in connection with reference variables,
  601. where a free variable with input flowpattern is matched with
  602. a constant or another variable with input flowpattern.
  603.  
  604. However, the used part of the trail can only be recovered when a
  605. predicate fails and backtracks over the point where the trail was used.
  606. Therefore, if the problem persists in spite of increases in the trail
  607. size, it is necessary to change the execution sequence to avoid the
  608. excessive trail usage. This may often be the case if a top-level predicate
  609. uses infinite recursion ('run:- process, run.') rather than a repeat-fail
  610. combination.
  611. #
  612. 1010 Attempt to open a previously opened file.
  613. Note that a symbolic file-name, declared with a file-domain,
  614. can only be used for one file at a time.
  615. #
  616. 1011 Attempt to assign input device to a file that is not in readmode.
  617. It is usually a bug in the program if you refer to a closed file.
  618. If, however, you want the predicate to fail if the file
  619. isn't open, you can surround the call with the 'trap' predicate:
  620.  
  621.       ..., trap(readdevice(Dev),_,fail), ...
  622. #
  623. 1012 Attempt to assign output device to a file that is not in writemode.
  624. It is usually a bug in the program if you refer to a closed file.
  625. If, however, you want the predicate to fail if the file
  626. isn't open, you can surround the call with the 'trap' predicate:
  627.  
  628.       ..., trap(readdevice(Dev),_,fail), ...
  629. #
  630. 1013 Failure in 'system' call.
  631. 'system' tried to load a program too big to fit in the available
  632. memory space, or which remained resident.
  633. #
  634. 1014 Division by zero.
  635. #
  636. 1015 Illegal window number.
  637. An attempt to refer to a non-existing window was made.
  638. If you want to test, and perhaps fail, on the existence of a window,
  639. use the standard predicate 'existwindow'.
  640. #
  641. 1016 Maximum number of windows exceeded. ( The maximum is 34. )
  642. #
  643. 1017 The arguments in 'resizewindow' are illegal.
  644. in resizewindow(StartRow,StartCol,NoOfRows,NoOfCols)
  645. Check that
  646.       - StartRow+NoOfRows <= no. of rows on screen (usually 25 or 43)
  647.       - StartCol+NoOfCols <= no. of cols on screen (usually 80 or 132)
  648.       - Both StartRow and StartCol are positive.
  649. #
  650. 1018 The file isn't open.
  651. #
  652. 1019 Illegal file mode, should be 0 or 1.
  653. '0' specifies Text mode, while '1' specifies Binary (raw) mode.
  654. #
  655. 1020 Free variables are not allowed here.
  656. This message occurs when a variable from a reference domain is tried
  657. to be converted to a non reference domain, while the variable is free.
  658.  
  659. During automatic type conversion, as example from integer to real
  660. it is required that variables are bound.
  661.  
  662. 'assert', 'writef' and 'format' etc. requires that all variables are
  663. bound before the call. (Only 'write' will display a free variable as an
  664. underscore).
  665. #
  666. 1021 Negative values or 0 cannot be arguments to 'log' or 'ln'.
  667. #
  668. 1022 Negative values cannot be arguments to 'sqrt'.
  669. #
  670. 1023 Overflow in real operation.
  671. #
  672. 1024 Error executing external program.
  673. The external program might be too big to be executed from the
  674. Prolog system or it might be an illegal EXE-file.
  675. Try to execute the external program from the DOS shell to see what happens.
  676. #
  677. 1025 Too few arguments to the format string.
  678. There were more arguments specified in the string than what appeared
  679. in the call.
  680. #
  681. 1026 The file is too big (max 64K) to be loaded by the 'file_str' predicate.
  682. #
  683. 1027 Impossible to open file.
  684. #
  685. 1028 Impossible to write file.
  686. #
  687. 1030 Disk I/O error.
  688. #
  689. 1031 Overflow in Expanded Memory System.
  690. #
  691. 1032 The database is already open.
  692. A given database selector can only be opened once.
  693. #
  694. 1033 Invalid database file name.
  695. #
  696. 1034 The database isn't open.
  697. No database is currently associated with DB_SELECTOR.
  698. #
  699. 1035 The B+TREE isn't open.
  700. The B+TREE has been closed since the bt_selector was returned
  701. from bt_open or bt_create.
  702. #
  703. 1036 The B+TREE already exists.
  704. The names for the B+TREES in a single database must be unique,
  705. and a B+TREE with the indicated name already exists.
  706. #
  707. 1038 The database name already exists in the specified location.
  708. The names for databases placed in memory must be unique.
  709. #
  710. 1039 Error reopening the database during flush operation.
  711. 'db_flush' closes and opens the file in order to flush the DOS
  712. buffers; there is sadly no other way of guaranteeing that the
  713. buffers really are flushed on a DOS-system.
  714. When the database file is opened again, the same name as before
  715. is used.  This may cause problems if the database was opened in
  716. the current (default) directory and this has been changed since
  717. then, as 'db_flush' will have closed it in the old directory and
  718. tries to look for it in the new directory.
  719. #
  720. 1040 Invalid Order value; it must be between 1 and 255.
  721. #
  722. 1041 Invalid Key length.
  723. The key length must be between 1 and 255.
  724. However, it should be chosen as small as possible in order to
  725. save space.
  726. #
  727. 1042 Attempt to update a B+TREE opened more than once.
  728. When a B+TREE has been opened more than once, it mustn't be updated
  729. before the additional pointers have been deleted with 'bt_close'.
  730. #
  731. 1043 Type conflict. The term in the database doesn't correspond with the domain.
  732. Database terms must be inserted and retrieved with variables belonging
  733. to the same domain.
  734. #
  735. 1044 Unable to create the indicated database.
  736. #
  737. 1045 Unable to open the indicated database in the given place.
  738. #
  739. 1046 No EMS installed.
  740. You can not use the option 'in_ems' in db_open and db_create if
  741. you have no EMS card installed.
  742. #
  743. 1047 Database marked as invalid.
  744. Whenever a database is closed, or flushed, it is totally consistent and
  745. marked as valid; this is reverted to invalid when it's contents are
  746. changed. If the computer crashes with an invalid database, it isn't
  747. subsequently safe to open and use it as if nothing has happened. In this
  748. case you must try to write a short recovery/copy program, opening the
  749. database with the 'openinvalid' predicate and copying the contents as far
  750. as they go to a new database.
  751. #
  752. 1048 Unable to delete database in the indicated place.
  753. #
  754. 1049 Invalid database reference number.
  755. You are probably using a database reference number for a term you have
  756. deleted, or you have maybe two open databases and are refering to the
  757. wrong database.
  758. #
  759. 1050 The chain does not exist in the database.
  760. #
  761. 1051 The named B+Tree does not exist in the database.
  762. #
  763. 1052 Invalid B+Tree selector for the given database.
  764. You are probably using a bt_selector for a B+Tree you have deleted, or
  765. you have maybe two open databases and are refering to the wrong database.
  766. #
  767. 1053 Can not delete an open index. (Close it first)
  768. #
  769. 1054 Key and ref not found in B+tree during key_delete.
  770. You either have a wrong combination of KEY and REF, or you are refering
  771. to a wrong B+Tree.
  772. #
  773. 1070 Impossible to execute 'seek' predicate.
  774. DOS reported an error during execution of the seek predicate.
  775. #
  776. 1071 File is not in readmode, or it is closed.
  777. #
  778. 1072 Impossible to delete file.
  779. #
  780. 1073 Impossible to rename file.
  781. #
  782. 1074 Invalid arguments to the 'date'-predicate.
  783. The arguments should be three integers in the order day, month, year.
  784. #
  785. 1075 Invalid arguments to the 'time'-predicate.
  786. The arguments should be four integers in the order
  787.         hours       0..24
  788.         minutes     0..59
  789.         seconds     0..59
  790.         hundreths   0..99
  791. #
  792. 1076 'unreadchar' failed because of full buffer (max 128 characters).
  793. #
  794. 1101 Integer expected (during term reading).
  795. #
  796. 1102 Real number expected (during term reading).
  797. #
  798. 1103 Double quote expected (during term reading).
  799. #
  800. 1104 Single quote expected (during term reading).
  801. #
  802. 1105 List start expected (during term reading).
  803. #
  804. 1106 End of list expected (during term reading).
  805. #
  806. 1107 Functor not found in domain (during term reading).
  807. #
  808. 1108 '(' expected (during term reading).
  809. #
  810. 1109 ',' or ')' expected (during term reading).
  811. #
  812. 2000 Not enough storage space for the text.
  813. #
  814. 2001 Can't execute a write operation.
  815. It's difficult to establish the exact reason for this error, but more
  816. often than not it is caused by a full disk or an invalidated floppy
  817. drive. This latter condition may occur when there have been several
  818. attempts to write to a drive with no disk in.
  819. #
  820. 2002 Impossible to open : 
  821. The specified file doesn't exist or can't be created.
  822. #
  823. 2003 Impossible to erase : 
  824. The specified file doesn't exist.
  825. #
  826. 2004 Illegal disk : 
  827. Illegal device or path.
  828. #
  829. 2005 >>> Text buffer full <<<
  830. #
  831. 2006 Can't execute a read operation.
  832. #
  833. 2007 Can't execute a write operation to log file: 
  834. This may be caused by the disk being full.
  835. The log file has been closed.
  836. #
  837. 2008 Result string in 'concat' or 'fronttoken' cannot be bigger than 64K.
  838. #
  839. 2009 Illegal path.
  840. #
  841. 2010 Graphics equipment on this machine does not support the specified mode.
  842. #
  843. 2011 Impossible to execute 'system'-predicate.
  844. #
  845. 5100 The predicate is not supported in graphics mode.
  846. #
  847. 5101 A system window (wno>127) can't be removed.
  848. #
  849. 5102 The hardware does not support the specified textmode.
  850. #
  851. 5103 Negative row number.
  852. #
  853. 5104 Row number too big.
  854. The specified row-value exceeds the size of the current window.
  855. #
  856. 5105 Negative column number.
  857. #
  858. 5106 Column number too big.
  859. The specified column-value exceeds the size of the current window.
  860. #
  861. 5107 Illegal screen mode, should be in the range 1..8.
  862. #
  863. 5108 Predicate is not supported in text mode.
  864. #
  865. 5109 The direction should be 0 or 1.
  866. #
  867. 5110 Output string in 'frontchar' cannot be bigger than 64K.
  868. #
  869. 5114 The line-coordinates are outside the window.
  870. #
  871. 6000 BGI graphics not installed.
  872. #
  873. 6001 Graphics hardware not detected.
  874. #
  875. 6002 Device driver file not found.
  876. #
  877. 6003 Invalid device driver file.
  878. #
  879. 6004 Not enough memory to load driver.
  880. #
  881. 6005 Out of memory in scan fill.
  882. #
  883. 6006 Out of memory in flood fill.
  884. #
  885. 6007 Font file not found.
  886. #
  887. 6008 Not enough memory to load font.
  888. #
  889. 6009 Invalid graphics mode for selected driver.
  890. #
  891. 6010 Graphics error.
  892. #
  893. 6011 Graphics I/O error.
  894. #
  895. 6012 Invalid font file.
  896. #
  897. 6013 Invalid font number.
  898. #
  899. 6014 Invalid device number.
  900. #
  901.