NOTE : This isn't the parser used by mSQL. The mSQL parser and scanner are all original code. This is being made available for anyone wanting to look at an embedded SQL pre-processor for mSQL as this parser includes ESQL support. Bambi ----------------------------------------------------------------------------- Leroy Cain; Columbia Union College; Mathematical Sciences Department 7600 Flower Ave. WH406; Takoma Park, Md 20912 (301) 891-4172 uunet!cucstud!lcain This is an parser for ISO/ANSI SQL written useing LEX, YACC, and C. It provides syntax check and a frame for building a completed query processor. See ANSI X3.135-1986 and ANSI X3.135.1-198x Addendum 1 ISO 9075-1987(E) Addendum 1 Unlike the previous SQL parser I posted this one can be process with a normal YACC so everyone should be able to use it. There are three parts: 1. Module -- This process the module specification and produces function calls to which ever language is specificied. 2. Embedded -- This process the embedded SQL specification and produces function calls to which ever language is specificied. 3. Internal -- This process SQL command passed to the function interface. Notes: In Module and Embedded you add the code to produce the function calls. Language specificied for use with Module and Embedded C, COBOL, FORTRAN, Pascal, PL/1. C as a possible langauge for Module and Embedded is not specificied in the ANSI specs. This is the only place I deveated. How to use this package Running make will produce the executables module, esql, ansi_sql.