home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / sql / sqlddlrd.me < prev    next >
Encoding:
Text File  |  1988-05-03  |  2.6 KB  |  58 lines

  1.  
  2. This directory contains a program illustrating the translation of our Ada DDL
  3. to the DDL required by other systems.  It is discussed in the paper (see
  4. [WIS.RACOM.DBMSINTER.SPEC]).
  5.  
  6. Input file: DDLTEST.IN - an example of our Ada DDL, also a legal Ada package
  7.  
  8. Output file: DDLTEST.OUT - script of screen output when the program was run using
  9.   the Data General (Rolm) validated Ada compiler.  Shows (1) echo and pretty
  10.   print of input, (2) simple DDL currently required by the prototype database
  11. management system used to demonstrate the DML (see [WIS.RACOM.DBMSINTER.DML]),
  12.   and (3) DDL required by DAMES as interfaced with Ada.
  13.  
  14. Notes on the main program: CREATE_STREAM, SET_STREAM, OPEN_INPUT and
  15.   CLOSE_INPUT are used to manage the input file.  CREATE_LINE and SET_LINE
  16.   manage the output file.  SCAN_DDL reads the Ada DDL file as input, builds
  17.   data structures representative of the input, and returns the name of the
  18.   package read.  DISPLAY_DDL uses the data structures to pretty print the
  19.   input and to print a tree of subtypes.  GENERATE_SIMPLE_DDL uses the data
  20.   structures to translate the input into our simple DDL, while
  21.   GENERATE_DAMES_DDL performs the same function for the DAMES DDL.
  22.  
  23. The source code is contained in DDL.SRC and the compilation order isshown
  24. in DDL.DIS as well as below:
  25.  
  26. Filename  Package name     Description
  27. --------  ------------     -----------
  28. TOKEN     TOKEN_INPUT      Manage input file, simplify reading input as tokens
  29.  
  30. TXTPRT    TEXT_PRINT       Manage output file, including continuation lines
  31.                            Also provide minimum width and default format
  32.                              printing of numbers
  33.                            Same as TEXT_PRINT for DML, except added phantoms
  34.  
  35. DDLDEFS   DDL_DEFINITIONS  Defines data structures built by SCAN_DDL
  36.  
  37. LISTUTIL  LIST_UTILITIES   Handy routines for manipulating data structures
  38.  
  39. READDDL   READ_DDL         Read Ada DDL input, building data structures
  40.  
  41. SHOWDDL   SHOW_DDL         Pretty print DDL input, print subtype tree
  42.  
  43. SIMDDL    SIMPLE_DDL       Generate simple DDL from data structures
  44.  
  45. DAMESDDL  DAMES_DDL        Generate DAMES DDL from data structures
  46.  
  47. MAIN      MAIN             Main program
  48.  
  49. The above notes app;y to our initial prototype (SQLDDL.SRC) that will
  50. generate DDL in accordance with the dpANS Database Language SQL
  51. except for the following:
  52.  
  53. 1.  We have not generated an Output file for the SQL_DDL generator.
  54. 2.  The compilation order is different and is shown in SQLDDL.DIS.
  55. 3.  The source code is contained in SQLDDL.SRC.
  56. 4.  The "MAIN" program is called "DRIVER" in SQLDDL.SRC
  57.  
  58.