APLA-Delphi Automatic Program Transformation System with Generic Programming Surpported
- Author
- ZhouZuo
- Advisor
- XueJinYun
- School
- Jiangxi Normal University
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2003
- Downloads
- 111
- Citations
- 0
Abstract
An important way for an effective solution to the \Professor Xue Jinyun in 863 countries and a number of National Natural Science Fund funding, according to the results of many years engaged in the algorithm programming theory, put forward a practical development method and show that the algorithm - PAR. Under the guidance of the method, we define Radl (Recurrence-based Algorithm Design Language) the abstract algorithm design language to describe the algorithm the Statute and abstract algorithm defined Apla (Abstract Programming Language) language to describe the abstract program. Radl and produced a to Apla, Apla to a variety of high-level language program conversion tool. This study selected the Delphi compiler using Object Pascal language as the target language, design and implementation of the support for generic programming and user-defined ADT type Apla → Delphi automatic program conversion system, the system supports the the Apla program to Delphi program automatic conversion and executed directly after conversion. The source language of the converter is Apla, the target language is Object Pascal Delphi compiler. Apla an abstract algorithm description language, and has a high level of abstraction, the expression of resistance and other characteristics. The Apla language tree collection sequence and combination of data types as the predefined type, and contains a the obvious syntax mechanism to support generic programming and user-defined ADT type. Instead, Object Pascal can not directly use the type of tree collection, sequence and combination, and there is no obvious reflect the ideas of generic programming syntax mechanism. How in Delphi support the Apla of these mechanisms is the focus and difficulty of the system to study the the Apla → Delphi automatic program conversion system goal is to make all the right the Apla program can get the right converter Delphi program, and able to run to get the correct results. In the system development process, we have learned some of the characteristics of the popular software development tools, and many innovations. : Intermediate variables temporarily generate object code directly perform dynamic segmentation display the toolbar of the window, special symbols, parameterized types, parameterized subroutine technology; improved many key algorithms in the system, such as: multiple assignment statement conversion algorithm code optimization algorithm. Tree, collection, sequence and combination of types of direct use to solve the problem through the use of existing oop technology obviously reflects the idea of ??generic programming syntax mechanism to solve structure predefined ADT library Delphi language used Pan type programming method by VC compiler entire conversion system (over 15,000 lines of source code). The system uses a large number of through rigorous PAR method developed the Apla procedures for testing. The correctness guarantee these the Apla program development process PAR method; Delphi component libraries defensive programming, software fault-tolerant software error avoiding modern programming tools, enhanced converted Delphi program correctness. We use the Apla described most of the existing data structure textbooks algorithm and some difficult algorithm the Apla described, such as: KMP the algorithm, KLEENE algorithm. In these the Apla procedures in both simple, but also complex, both non-numerical computation types, but also numerical calculation type. Direct conversion and direct the implementation of all the examples are all in this system, and get the right results. Further work includes perfect the Apla → Delphi automatic program conversion system conversion mechanism; the Apla → Delphi automated program transformation system reliability; instance increase Apla conversion, improve the degree of commercialization of the product, and actively preparing to apply for a patent.
Table of contents
Acknowledgements 2-3
Summary 3-4
ABSTRACT 4-5
directory 5-8
Introduction 8-10
Chapter 1 Software development methodology and its supporting tools 10-19
1-1 Introduction 10
1-2 software automation level 10-11
1-3 software development tools the typical formal methods and their supporting tools introduced in 11
1-4 11-14 <br / the> 1-4-1 VDM Method 11
1-4-2 Z 11-12
1-4-3 the RAISE method <br / > 1-4-4 model detection method and 12
1-4-5 B 12-13, Nanjing University, 1-4-6
automatic pilot system 13-14
1-4-7 XYZ method 14
1-5 PAR method 14-17
1-5-1 the PAR methods generally thought the the
1-5-2 PAR method composed the PAR method development right Apla procedures are found in 14-15
1-5-3; 15-17
1-5-4 PAR method of conversion tool series 17
1-6 Summary 17-19
Chapter 2 predefined ADT type support 19-29
2-1 theoretical foundation 19-21
2-1-1 abstract data type (ADT) 19-20
2-1-2 theory 20-21
2-1-3 software reuse theory 21
a 2-2 high reliability predefined ADT library several basic problems which 21-26
2-2-1 What is the most basic operation 21-22
2-2-2 operation how to achieve 22
2-2 -3 how to ensure the reliability 22-26
2-3 predefined ADT library design 26-28
2-3-1 predefined the ADT library's overall of design 26
2-3-2 predefined ADT library design to achieve the ADT library use predefined 26-28
2-4 28-29
Chapter 3 user-defined the ADT type support 29-32
3-1 What is a custom ADT type 29
3-2 APLA, the custom the ADT type mechanism 29-30
3-3 Examples 30-32
3-3-1 queue 30-31
3-3 - 2 stack 31-32
Chapter 4 generic programming support 32-40
4-1 definition of generic programming and function 32 < br /> 4-1-1 What is the generic programming 32
4-1-2 generic programming 32
4-2 APLA Pan the type mechanism 32-33
4-2-1 type parameter 32-33
4-2-2 subroutine parameterization are found.; 33
4-3 generic programming implementation 33-34-
4-3-1 similar static translation 33
4-3-2 heterogeneous static translation 33-34
4-3-3 dynamic class loading 34
4-4 Examples 34-40
4-4-1 kleene algorithm 34-35
4-4-2 binary tree in postorder traversal 35-36
4-4-3 n-queens problem 36-38
4 - 4-4 Common Minimum Spanning Tree 38-40
Chapter 5 APLA → DELPHI the automatic procedures converter design and realization 40-53
5-1 APLA language 40
5-2 OBJECT PASCAL language 40-42
5-3 conversion system's overall design 42-43
5-4 lexical analysis design and Implementation design nbsp 43-44
5-4-1 lexical analysis; 43
5-4-2 lexical analysis to achieve 43
5 -4-3 lexical analysis of the input 43
5-4-4 lexical analysis output 43
5-4-5 lexical analysis function 43 - Design and Implementation 44
5-5 parsing 44
5-5-1 parsing design 44
5-5-2 parsing achieve 44
5-5-3 parsing input 44
5-5-4 parsing output 44
5-5-5, parsing function 44
the 5-6 error handling the lexical error nbsp 44-45
5-6-1; 44-45
5-6 -2 syntax error 45
5-6-3 semantic error 45
5-7 object code optimization 45
5-8 symbol table 45
5-9 conversion rules the 5-9-1 type definitions 45-48
conversion 45-46
5-9-2 variable The description of the conversion constants 46
the 5-9-3 expression is converted 46
5-9-4 statement conversion 46-47
-9-5 process the function called conversion 47-48
the 5-9-6 conversion rule correctness 48
5-10 APLA → the DELPHI algorithm for program the implementation and use of the converter 48-50
of 5-10-1 user interface to achieve 48-50
5-10-2 input Apla algorithm 50 the
5-10-3 installed into the algorithm Apla → Delphi program converter 50
5-11 conversion instance 50-53
the 5-11-1 the problem: breadth-first traversal Figure 50-51
5-11-2 problems by: looking for a collection of power set 51-53
Chapter 6 Summary and Outlook 53 - 54
6-1 conversion system functions and features 53
6-2 summarizes 53
6-3 Looking 53-54 <br / > References 54-55
Related dissertations
- Design and Implementation of Apla to C# Automatic Program Transformation System
- Apla-Java Automatic Program Transformation System with Generic Programming Supported
- Implementation of Composed Data Type in APLA Through C++
- The Application and Research of PAR Platform in Software Outsourcing Services
- Research and Implementation of STL Runtime Concept
- Study on Parallel Programming Models
- Research on Software Refactoring
- The Research of Developing Algorithmic Program Based on PAR Method
- The Primary Research of PAR Applied to MIS Development Method
- The Research and Application of a New Pipe-Filter Pattern
- The Research and Implementation of Programming ICAI with Function of Automatic Reasoning Based on Case and Rule
- The Research and Application of the Category Theory Model for Generic Programming
- The Research on ICAI of Programming with Function of Automatic Reasoning
- Research on ICAI Environment of Programming Based on J2EE
- Research on the Parallel and Concurrent Mechanism of Apla-Java Reusable Components
- The Research and Application of New Strategies for Developing Loop Invariants on Recursive Problem
- The Applied Research of PAR Method in Numerical Methods
- RADL->APLA Algorithm Program Automatic Transformor Experiment System Study
- The Research on the Application of PAR Method in Constructing High-Reliability MIS
- The Research and Application of Short Message System Based on PAR Platform