Font Size: a A A

The Construction Of Complier For SQL--Basing On Linux Operating System

Posted on:2003-04-03Degree:MasterType:Thesis
Country:ChinaCandidate:J WuFull Text:PDF
GTID:2168360125970155Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
SQL is a structure query language, which is a standard language for database, and almost all DBMS adopted it as programming language. SQL have kinds of different sentences, which all use an effective way to interact between user and database. What' s so called the construction of SQL compiler is to implement a compiler for SQL.This paper describes an SQL-compiler basing on Linux OS. The compiler translates the query language SQL to the C++ programming language and integrates the pre-complier function to the GCC. SQL statements can be embedded in C++ code and compiled together with the C++ program.The paper explains why and how the compiler was developed. There are also a few examples and tutorial showings for the convenience of the reader. At the same time some middle results of every analysis phase was demonstrated for proving the availability and validity of the compiler.In this paper, author discusses the every section of a compiler;include scanner, parser, and semantic analyzer and code generator in detail.The compiler is just a prototype.
Keywords/Search Tags:compiler, SQL, lexical analysis, parser, semantic analysis, code generator
PDF Full Text Request
Related items