Font Size: a A A

A Procedural Language Compiler Design And Implementation

Posted on:2016-07-25Degree:MasterType:Thesis
Country:ChinaCandidate:X Y ZhouFull Text:PDF
GTID:2308330482481384Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Procedural programming language, is an important part of the programming language. To date, most colleges and universities will also regard procedural programming language as an introductory course of program design, understanding of procedural programming language, to learn the software engineering discipline, has the very vital significance. Compilation principle is an important professional course in software engineering, the course from the aspects of theory, technology and method, for the development of the students are very well. This topic is designed to realize the procedural programming language, which is based on the principle of compilation. Since computer machine language was born in the 1940 s, how to write efficient and concise program correctly, to the development of computer application, has always been a big problem. Compilation principle is to solve, how to transform a person’s mind into a code that a computer can understand.This paper describes the process of language and compiler development, followed by the development of this tool used by the Visual Studio C ++ 2010 as well as object-oriented programming method to do some simple introduction. Finally highlights the compiler development process in detail, divided into four parts were elaborated: lexical analyzer design; user interface portion and systems; parser design; semantic analysis. Each part has to be explained in terms of the overall framework, detailed process, focusing on data structures and functions, and interface with other parts, respectively. This paper design and implementation of procedural programming languages, including a variety of commonly used basic data types such as int, double, char, long, bool, etc; in the above sentence structure, including the order of execution statements, for loops, if \ else Analyzing branch statements and the like. LIke other programming languages, design and implementation of this project procedural programming language also provides a function call functions, but also support recursive function calls. Due to the complexity of the process of language itself, it is difficult to achieve all things to standard definition, so this design choice part only symbolic representative function. In the fourth chapter gives a detailed design to achieve the functionality and syntax specification, but also gives the compiler runs.Design and implementation of this project is mainly a procedural programming language compiler system, the procedural programming language, like C language, pascal and other procedural programming languages, features basic sound. The language of the compilation process, mainly includes the lexical analysis, syntax analysis, semantic analysis and code generation and code optimization, target code generation, an object code interpreter virtual actuator.
Keywords/Search Tags:Procedural languages, object-oriented programming, compilers
PDF Full Text Request
Related items