The Design and Implementation of LL(1) Action Grammar Compiler’s Automatic Constructor in Java Language
- Author
- ZhangHongTao
- Advisor
- ZhangChangHai
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 219
- Citations
- 1
Abstract
The main task of this paper is to create a grammar for LL ( 1 ) action compiler automatically generated using java . Input the defined grammar writing files ( grammar LL (1) analysis ) after lexical analysis of the input file recursive descent method to build its storage structure in memory , and then calculate the input grammar nonterminal symbols can generate empty each nonterminal first collection , each nonterminal follow collection , and predict a collection of each rule , and any two rules to determine any nonterminal predict set intersection is empty , and if it is in line with the input grammar LL (1) grammar can be analyzed to generate the corresponding grammar parser , so as to complete the creation of the system .
Table of contents
The first chapter 7-8
1.1 topics of purpose, meaning 7
1.2 content of this study 7-8
Chapter Overview 8-25
2.1 compiler functional structure [1] 8-12
2.2 compiler ways 12-14
2.3 LL (1) grammar and parser 14-21
2.4 Actions grammar 21-25
Chapter III of the input file structure and lexical 25-31
3.1 input file syntax 25-27
3.2 lexical structure of the input file and its implementation 27-31
Chapter 4 System design and Implementation 31-41
4.1 lexical analysis part of the implementation 31-35
4.1.1 lexical analyzer boot file 31-33
4.1.2 lexical analysis the main program 33
4.1.3 preprocessing 33-34
4.1.4 scanner portion 34-35
4.1.5 table reserved words table section 35
4.2 syntax analysis part of the implementation 35-41
4.2.1 rules storage structure 35
4.2.2 build rules storage 35-36
4.2.3 nonterminal launched empty 36
4.2.4 calculation first set 36-37
4.2. 5 Calculate follow set 37
4.2.6 calculation predict sets 37-38
4.2.7 determine whether LL (1) 38
3.2. 8 generated parser 38-41
Chapter instance 41-57
References 57-58
Summary 58 -60
ABSTRACT 60-63
Thanks 63-64
instructor and author 64
Related dissertations
- OCCL Compiler for Linux
- Source Code Assessment System Research and Development
- Visual Implementation of Operational Semantics of Procedural Programming Languages
- The Design and Implementation of the DSQL Based on the Domain Data Model
- Implementation of the Parser of TTCN-3 by Parser Generator Based on the Windows System
- Research and Application of Formal Language in Report Systems
- Research on spatial data manipulation language
- Research of VHDL Compiler’s Design Techniques
- VHDL Compiling System Design Methods and Studies on the Key Techniques
- Protocol Auto-Adapted Communication Technology
- Based on the entity 's non-circular curved surface grinding Research and Implementation of Simulation System
- TTCN-3 compiler technology Research and Implementation
- The Construction of Complier for SQL--Basing on Linux Operating System
- Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
- Syntax Checking Methods of the Flight Scheduling Rules
- Reverse Demonstration of Algorithm in CAI
- Compiler technology -based automated data collection technology research
- Based on DOM / AST technical design of the C language parser
- Finite Automata-based Technology in Flight Scheduling
- Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC