Formal specification language LFC implementations and applied research
- Author
- HuangWenJi
- Advisor
- DongZuoMei
- School
- Institute of Software
- Major
- Computer Software and Theory
- Classification
- TP312 Programming language ALGOL
- Degree
- Doctoral dissertation
- Year
- 2004
- Downloads
- 120
- Citations
- 0
- Recursive function
- Compiler
- Formal specification language
- Sentence enumeration
- Program translation
- Intermediate code
Abstract
LFC is based on recursive functions on context-free languages ??(CFRF) theory based on formal specification language can support the formal specification of the access and inspection. LFC is also a functional language, with a good mathematical foundation transparent reference, no side effects, pattern matching. This work is mainly to study the formal specification language LFC implementations and applications, and also includes a context-free language sentences enumeration algorithm. On the theoretical side, a context-free language sentences enumeration algorithm. The enumeration algorithm first calculates the minimum sequence context-free language sentences and maximum sequence sentences, and sentences from the smallest sequence according to the sequential scan string until the scan until the maximum sequence sentences, the string is scanned to determine trade-offs. Cut and forward-looking strategy in the scanning process, has considerably reduced the number of the string to be scanned, you can achieve better spatial and temporal performance. Realization compile LFC technology route, designing a target abstract machine translation through the program will be translated into the target abstract machine code source, and then convert the abstract machine code to assembly code, assemble and link the execution. Translation process parameters consistent pattern component translation mode coding, common subexpression extraction, pattern matching tree structure and optimization work. LFC is a type of language to design a type system supports parametric polymorphism, type checking algorithm, also discussed the need to solve the problem in the implementation of the type system. For the achieve compiled purpose, design of a the target abstract HSECD machine, discussed in detail the HSECD machine structural optimization method of instruction, working principle and instruction. Asked the assembly instruction from generated by the HSECD machine instructions, including how to organize the storage structure and macro expansion. In addition, a simple design for context-free language sentence parse tree representation, this representation can improve space efficiency, and easy to implement. According to the characteristics of CFRF, there is proposed the method of calculation of the postfix form, reducing dynamic grammar analysis function calculations, avoiding unnecessary evaluation value calculation, so that the efficiency is improved. On this basis, the LFC's compiler. A LFC written applications from XML DTD to XML Schema conversion tool to test the ability of LFC.
Table of contents
Chapter Introduction 8-19
1.1 thesis work background 8-9
the 1.1.1 software developers with formal specification 8
1.1.2 MLRIF method 8-9
1.2 papers basic knowledge 9-14
1.2.1 context-free languages ?? 9-10
1.2.2 context-free nbsp recursive functions on the language; 10-11
1.2.3 formal specification language LFC 11-14
1.3 related research 14-17
1.3 .1 formal specification language 14-16
1.3.2 Functional languages ?? the 16-17
1.4 paper The content and significance 17-19
1.4.1 thesis work content and significance 17-18
1.4.2 thesis arrangements nbsp are; 18-19
context-free language sentences enumeration algorithm 19-27
2.1 Purpose 19
2.2 Symbols and conventions 19
2.3 minimum sequence sentences 19-22
2.4 EARLEY algorithm, nbsp 22-23
2.5 context-free language sentences enumeration; 23-27
Chapter LFC realization 27-35
3.1 Background nbsp are; 27
3.2 compiler Summary 27-29
3.3 concepts and symbols 29-35
Chapter type system 35-44 < br /> 4.1 Introduction the types characteristics 35-36
4.2 LFC the polymorphic type 36
4.3 LFC 36-40
4.4 type checking nbsp 40-41
4.5 LFC polymorphic type system implementation; 41-44
Chapter program translation 44-58
5.1 intermediate code IR1 INTERMEDIATE REPRESENTATION 44-48
5.1.1 the intermediate code IR1 form of the 44-46
5.1.2 unified parametric 46-47
5.1.3 mode component, the 47-48
the 5.2 intermediate code IR2 INTERMEDIATE REPRESENTATION 48-52
5.2.1 intermediate code IR2 form 48-49
the 5.2.2 model encoding and consolidation the common subexpression 49-50
5.2.3 extract 50-52
5.3 intermediate code IR3 (INTERMEDIATE REPRESENTATION) 52-58
5.3.1 the intermediate code IR3 form of the 52-54
5.3.2 pattern matching tree constructed 54-56 < br /> 5.3.3 Pattern Matching tree optimization 56-58
the sixth chapter HSECD abstract machine 58-73
6.1 Calculation Method 58-60 < br /> 6.2 HSECD machine structure and instruction the 60-65 the
6.3 HSECD machine instruction generated a 65-69
6.4 HSECD machine, instruction optimization 69-73 the
chapter VII assembly code generated 73-79
7.1 storage structure and management of The 73-74
7.2 storage management 74-76 <br / > 7.3 macro expansion are found; 76-79
Chapter VIII of the system and experimental 79-84
8.1 LFC compiler 79-81
8.1. 1 LFCC functionality 79-80
8.1.2 LFCC, the structure 80-81
8.1.3 LFCC, achieve 81
8.2 Experimental 81-84
Chapter IX of LFC application 84-90
the 9.1 applications briefing 84
9.2 applications in the field of XML LFC 84-90
Chapter Conclusion 90-93
10.1 thesis work summarizes the 90-91 work
10.2 Next 91-93
Reference 93-97
Appendix A LFC language 97-100
A. LFC the BNF 97-98
A 2 basic types 98
A. 3 basic functions the 98-100
Appendix B HSECD machine instructions state conversion table 100-104
Appendix C the DTD grammar 104-106 IN
PhD during post 106-107
thank the 107
Related dissertations
- OCCL Compiler for Linux
- Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
- The Design and Implementation of a Complier for SCADA Based on C
- Backend Porting for CSKY Based on LLVM Compiler Infrastructure
- Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
- The Embedded SRAM Compiler Design and IP Verification
- Design and Implementation of SQL Compiler on Column-Oriented Database
- Design and Implementation of Configurable Compiling Tools
- The Optimized Frontend Compiling System Design for Remus Ⅱ Reconfigurable Processor
- A Self-Adapted Prolog Compiler
- Research of Recursion Optimization in XQuery Based on Twig Pattern Matching
- The Research of the Intermediate Code Obfuscation Techniques Based on Microsoft COFF Platform
- The Design and Realization of Programming Device Based on the Type of STM8S208Single Chip Microcomputer as the Controller
- Research and Design of Digital Broadcast Platforms
- Automatic Platform for Parameterized Design of ASIP
- The design of embedded SRAM compiler
- Design and Implementation of Memory Compiler for Embedded SOC
- A Study on Preface of Selections of Novels in the Great Series of the New Literature 1917-1927
- Study on Virtual Instrumentation Development Environment Based on Dataflow Visual Programming Language
- Compiler Design for VLIW DSP with Performance and Power Consumption Optimizations