home *** CD-ROM | disk | FTP | other *** search
-
- This directory contains a program illustrating the translation of our Ada DDL
- to the DDL required by other systems. It is discussed in the paper (see
- [WIS.RACOM.DBMSINTER.SPEC]).
-
- Input file: DDLTEST.IN - an example of our Ada DDL, also a legal Ada package
-
- Output file: DDLTEST.OUT - script of screen output when the program was run using
- the Data General (Rolm) validated Ada compiler. Shows (1) echo and pretty
- print of input, (2) simple DDL currently required by the prototype database
- management system used to demonstrate the DML (see [WIS.RACOM.DBMSINTER.DML]),
- and (3) DDL required by DAMES as interfaced with Ada.
-
- Notes on the main program: CREATE_STREAM, SET_STREAM, OPEN_INPUT and
- CLOSE_INPUT are used to manage the input file. CREATE_LINE and SET_LINE
- manage the output file. SCAN_DDL reads the Ada DDL file as input, builds
- data structures representative of the input, and returns the name of the
- package read. DISPLAY_DDL uses the data structures to pretty print the
- input and to print a tree of subtypes. GENERATE_SIMPLE_DDL uses the data
- structures to translate the input into our simple DDL, while
- GENERATE_DAMES_DDL performs the same function for the DAMES DDL.
-
- The source code is contained in DDL.SRC and the compilation order isshown
- in DDL.DIS as well as below:
-
- Filename Package name Description
- -------- ------------ -----------
- TOKEN TOKEN_INPUT Manage input file, simplify reading input as tokens
-
- TXTPRT TEXT_PRINT Manage output file, including continuation lines
- Also provide minimum width and default format
- printing of numbers
- Same as TEXT_PRINT for DML, except added phantoms
-
- DDLDEFS DDL_DEFINITIONS Defines data structures built by SCAN_DDL
-
- LISTUTIL LIST_UTILITIES Handy routines for manipulating data structures
-
- READDDL READ_DDL Read Ada DDL input, building data structures
-
- SHOWDDL SHOW_DDL Pretty print DDL input, print subtype tree
-
- SIMDDL SIMPLE_DDL Generate simple DDL from data structures
-
- DAMESDDL DAMES_DDL Generate DAMES DDL from data structures
-
- MAIN MAIN Main program
-
- The above notes app;y to our initial prototype (SQLDDL.SRC) that will
- generate DDL in accordance with the dpANS Database Language SQL
- except for the following:
-
- 1. We have not generated an Output file for the SQL_DDL generator.
- 2. The compilation order is different and is shown in SQLDDL.DIS.
- 3. The source code is contained in SQLDDL.SRC.
- 4. The "MAIN" program is called "DRIVER" in SQLDDL.SRC
-
-