Research on SQL Complier of Database Engine
- Author
- ZouHui
- Advisor
- YangKeJian
- School
- Wuhan University of Technology
- Major
- Computer Science and Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 120
- Citations
- 1
Abstract
In today's world is a flood of information generated every day , so much information through a variety of ways to spread worldwide . As an individual or business will come into contact with large amounts of data to manage and manipulate these data , the database is an indispensable tool for database management system ( Database Management System ) referred to as the DBMS is the core of this system . It can not only guarantee the security and integrity of the database , but also the database manipulation and management . DBMS mainly provides long-term storage , programming interface , transaction management . To achieve these functions the database engine is critical , it is used for storage , processing , and securing data core services . SQL language pre-compiler build , including the departure from the knowledge of the compiler theory , to the lexical analysis procedures and parser , and finally to the code generation and optimization of the entire compilation process and the SQL language processing detail. SQL language in the system is the standard language, which is a high-level non-procedural programming language , the user can apply it on the basis of the higher-level work , they do not develop the database is stored . This paper first describes the various stages of the compilation process and its related knowledge , including: regular expressions , finite automata , context-free grammars , LALR ( 1 ) grammar . Then several major compiler phases and processes the method of constructing the system as the basis for a detailed introduction , including how to use lex and yacc tool to generate lexical analysis procedures and parser , and gives them in the SQL language compiler to achieve the specific application process . A detailed description of the SQL pre- compiler construction methods and technical route . The overall design concept of the SQL pre- compiler first generation tools LEX lexical build a lexical analyzer , and then by the the YACC grammar generation tool build a parser , these two analyzer as the core of the entire compilation system . By the virtual machine as the middle part of the rear by a B-Tree and buffer module , coupled with the operating system API interface, so that together constitute the SQL pre- compiler .
Table of contents
Summary 4-5
Abstract 5-9
Chapter 1 Introduction nbsp 9-12
1.1 database system development; 9 - 10
1.2 database system 10-11
1.3 The main contents 11-12
Chapter 2 compiler theory briefly 12-17 The
2.1 compile principle 12-14
2.2 compiler construction and related concepts 14-15
2.3 compiler development history 15-17
Chapter 3 SQL pre-compiler. 17-23
3.1 SQL pre-compiler brief 17
3.2 SQL pre-compiler structure 17 -20
3.2.1 database interface 18-19
3.2.2 SQL statement processing 19
3.2.3 virtual machine module 19-20
3.3 other parts of the pre-compiler 20-23
3.3.1 B-Tree concept 21-22
3.3.2 buffer module 22 - Chapter 4 of the 23
lexical analysis and design the 23-37
lexical 4.1 The analysis outlined 23
4.2 lexical analysis elements 23-26 <br / > 4.2.1 Scanning processing 23-24
the expressions 4.2.2 is 24-25
4.2.3 25-26
4.3 finite automata 26-28
4.3.1 Deterministic Finite Automata 26-27
4.3.2 non-deterministic finite automata 27-28
4.4 from the regular to the lexical analyzer 28-31
4.4.1 regular expression to NFA 28-30
4.4.2 from NFA to DFA 30
4.4.3 lexical analyzer by the DFA construction 30-31
4.5 Lex lexical parser generator
4.5.1 LEX 31-37 routines 32-33
4.5.2 SQL grammar composition 33-35
the 4.5.3 SQL finite automata 35-37
5 the parsing Design 37-55
5.1 syntax analysis outlined 37-38
5.1.1 parser role 37-38
5.1 .2 syntax errors principles 38
5.2 context-independent grammar 38-40
5.2.1 LALR (1) grammar analysis 39-40 <br / 5.3 YACC parser generator 40-49
the YACC 5.3.1 Generator program 40-43
5.3.2 LEX YACC with the use 43 - 45
5.3.3 LEX YACC interaction 45-46
the 5.3.4 generated SQL parsing table 46-48
5.3.5 semantic analysis interface the 5.4 syntax analysis and syntax tree 48-49
49-55
5.4.1 SQL syntax subset 50-52
5.4.2 SQL syntax tree 52-55
Chapter 6 compiler system design 55-57
6.1 System Module Introduction 55-56
6.2 Comparison of system performance 56-57
Chapter 7 Summary and Outlook 57-59
7.1 work 57
7.2 applications and prospects 57 - 59
Reference 59-61
Acknowledgements nbsp 61-62 <br the /> studying during the published papers and to participate in the project; 62
Related dissertations
- The Analysis and Realization of Database Language SQL
- Stack -based virtual machine based development platform for the design and implementation of operational
- Linux-based PL/SQL Compiler
- Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
- Design and Implementation of SQL Compiler on Column-Oriented Database
- Design and Implementation of game scripting engine
- Research and Implementation of C-alike Teaching Language for Compiler Principles
- Design and Implementation of Soft PLC for Open CNC
- Implementation of the Parser of TTCN-3 by Parser Generator Based on the Windows System
- Building Process Virtual Machine via Dynamic Binary Translation
- The Construction of Complier for SQL--Basing on Linux Operating System
- Implementation of Standalone Programmable Motion Controller
- Research and Implementation of Mainframe Simulation COBOL Integrated Debugging Environment
- Design and Implementation of Robot Graphic Programming System
- Analysis on AOSD and Compiler Technology
- Research on Performance Monitoring Technique of Cluster Management of the Virtual System
- Research on Attacks and Prevention Technology Based on ARP and PPPoE
- Based on I/O Performance of Virtual Machine Resource Scheduling Algorithm Research
- The Design and Implementation of Office Automation System for Sifang Chemical Co., Ltd.
- Research on SPARQL Query Over Relational Databases Based on SQL Convertion