home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / lout2.lzh / LOUT2 / DOC / TR.LOUT / ch3.22 < prev    next >
Text File  |  1994-01-25  |  2KB  |  36 lines

  1. @Section
  2.    @Title { "@Database and @SysDatabase" }
  3.    @Tag { database }
  4. @Begin
  5. @PP
  6. database.sym @Index { @@Database symbol }
  7. The @@Database symbol is used to declare the existence of a file
  8. of symbol invocations that Lout may refer to when evaluating cross
  9. references.  In Basser Lout, for example,
  10. @ID @Code {
  11. "@Database @Months @WeekDays { standard }"
  12. }
  13. means that there is a file called @Code "standard.ld" containing
  14. invocations of the previously defined symbols @Code "@Months" and
  15. {@Code "@WeekDays"}.  A @@Database symbol may appear anywhere a definition
  16. or a @@Use symbol may appear.  Different definitions packages may refer to a
  17. common database, provided the definitions they give for its symbols are
  18. compatible.  An entry is interpreted as though it appears at the point
  19. where the cross reference that retrieves it does, which allows symbols
  20. like @Code "@I" for @Code "Slope @Font" to be used in databases.  The
  21. database file may not contain @@Database or @@Include symbols, and each
  22. invocation within it must be enclosed in braces.
  23. @PP
  24. Basser Lout constructs an {@I {index file}},
  25. index.file @Index { Index file (for databases) }
  26. which in this example is called {@Code "standard.li"}, the first time it
  27. ever encounters the database, as an aid to searching it.  If the database
  28. file is changed, its index file must be deleted by the user so that
  29. Basser Lout knows to reconstruct it.
  30. @PP
  31. Basser Lout searches for databases in the current directory first, then
  32. in a sequence of standard places.  To search the standard places only, use
  33. sysdatabase.sym @Index { @@SysDatabase symbol }
  34. @@SysDatabase.
  35. @End @Section
  36.