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

Request the full text

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

  1. OCCL Compiler for Linux
  2. Source Code Assessment System Research and Development
  3. Visual Implementation of Operational Semantics of Procedural Programming Languages
    SunXuDong ·Jilin University ·2008 ·Master's thesis
  4. The Design and Implementation of the DSQL Based on the Domain Data Model
    XuJingRong ·Suzhou University ·2007 ·Master's thesis
  5. Implementation of the Parser of TTCN-3 by Parser Generator Based on the Windows System
    ZuoJianEn ·Inner Mongolia University ·2004 ·Master's thesis
  6. Research and Application of Formal Language in Report Systems
    GuoJianXing ·Shanghai Normal University ·2004 ·Master's thesis
  7. Research on spatial data manipulation language
    CuiJianJun ·Chang'an University ·2005 ·Master's thesis
  8. Research of VHDL Compiler’s Design Techniques
    QiXingGang ·Sichuan University ·2005 ·Master's thesis
  9. VHDL Compiling System Design Methods and Studies on the Key Techniques
    LiYuan ·Sichuan University ·2005 ·Master's thesis
  10. Protocol Auto-Adapted Communication Technology
  11. Based on the entity 's non-circular curved surface grinding Research and Implementation of Simulation System
  12. TTCN-3 compiler technology Research and Implementation
    QianXiangHong ·Southwest Jiaotong University ·2004 ·Master's thesis
  13. The Construction of Complier for SQL--Basing on Linux Operating System
  14. Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
    QuGuoDong ·Dalian Railway Institute ·2003 ·Master's thesis
  15. Syntax Checking Methods of the Flight Scheduling Rules
  16. Reverse Demonstration of Algorithm in CAI
  17. Compiler technology -based automated data collection technology research
    LingHao ·Shanghai Jiaotong University ·2008 ·Master's thesis
  18. Based on DOM / AST technical design of the C language parser
    GuoBangCai ·Wuhan University of Technology ·2011 ·Master's thesis
  19. Finite Automata-based Technology in Flight Scheduling
  20. Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC