Designing and Implementation of an Interpreter Based on SDG-HAZOP, Based on the Language Similar to C

Author
SunJianBo
Advisor
ZhaoHengYong
School
Beijing University of Chemical Technology
Major
Applied Computer Technology
Classification
TP312.1 Programming language ALGOL
Degree
Master's thesis
Year
2007
Downloads
110
Citations
1

Request the full text

Abstract

SDG—HAZOP modeling software, based on SDG method is used to build up models and ratiocinate. It has extensive applied fields and now is mainly applied to safety evaluation of the chemical process. The result of the safety evaluation can guide the actual production. But, this software is qualitative modeling, not including quantitative information.Based on the software’s shortage, the paper has brought forward the thought of improving SDG capacity of deep-knowledge-reasoning by combining Real-time script interpreting and performing. According to this thought, the paper has implemented an interpreter based on the language similar to C, and applied this interpreter to the steam- superheater case, and proved the feasibility of this thought.In the realization of the translator system, the paper first researches compiler technology, and then designs the realization scheme. This includes: contriving the language similar to C; studying lexical analysis technology and constructing finite automaton of lexical analysis; designing the grammar of the language similar to C, discussing building up analysis-table, constructing syntax tree and data structures in the course of syntax analysis; designing symbol table and function table.

Table of contents

Abstract 4-5 ABSTRACT 5-11 first chapter 11-17 1.1 Background topics 11-13 the 1.2 compiler theoretical and technical development 13-14 1.3 domestic compiler theory and technology development 14-15 main contribution of this article 1.4 15 1.5 of this article organizational structure 15-17 second chapter of the compiler and interpreter Overview 17-25 2.1 high-level language execution 17 the the 2.2 compilation process and compile the program structure overview 17-19 2.3 compiler structure other concepts 19-21 2.4 lexer and parser automatically generated 21-23 2.5 compiler data structure 23 2.6 Summary 23-25 Chapter C interpreter overall design 25-29 3.1 class C language design 25-26 3.2 C interpreter work program 26-28 3.3 Summary 28-29 the lexer Design and Implementation 29-37 4.1 lexical analysis program 29 4.2 Error Handling 29-30 4.3 input buffer 30 4.4 regex 30-31 4.5 the finite automata 31-35 4.6 Summary 35-37 Design and Implementation of the syntax and semantic analyzer 37-59 5.1 syntactic and semantic methods 37-38 5.2 context-free grammar 38 5.3 operator precedence method analysis of expression 38-40 5.4 LR (k) and LALR (1) Analysis 40-47 5.5 The design of the symbol table and function table 47-51 5.6 semantic analysis and generate syntax tree 51-58 5.7 Summary 58-59 the test sixth chapter, the instance and Case 59-77 6.1 test interpreter a lexical error identification 59-61 6.2 test interpreter syntax error identification 61-66 6.3 instance 66-69 6.4 Case Study 69-76 6.5 Summary 76-77 Chapter VII summarizes 77-79 Acknowledgements 79-81 the References 81-83 to pursuing degree during the academic 83-85 the author and mentor Introduction 85-86 Beijing University of Chemical Technology graduate dissertation committees for resolution book 86-87

Related dissertations

  1. The Research and Implementation of Embedded ECMA Interpreter
    ZhangJinBo ·Hohai University ·2006 ·Master's thesis
  2. Keyword Extraction Based on Statistic and Syntactic Parsing
  3. A Report on the Translation Practice of Japanese Garden
  4. A Study on the Exertion of the Translator's Subjectivity from Three English Versions of Wenxin Diaolong
    LiSu ·Shanghai Normal University ·2013 ·Master's thesis
  5. A Translation Project Report on Sustainability in Interior Design (P90-P106, P154-P177)
  6. Translator's Adaptation and Selection:a Study on C-E Translation of Signs in Scenic Spots
  7. A Comparative Analysis of the Translators'Subjectivities on English Versions the Analects of Confucius
    XuQingGuang ·Shaanxi Normal University ·2013 ·Master's thesis
  8. Project Translator Report of Accreditation Scheme for Museums and Galleries in the United Kingdom
    SunHang ·Central South University ·2013 ·Master's thesis
  9. Benefits of Terminology Management in Professional Translation
  10. Style Consistency in Continuos Translation Projects from a Translator's Perspective
  11. On Influence of Translator's Cultural Identity upon Translation
  12. A Study of the Translation of Speech and Thought Presentation in Two English Versions of Chin P'ing Mei
  13. On the Subjectivity of the Translator in Sense and Sensibility a Comparative Study of the Translations of Sense and Sensibility
    LuQinHua ·Gannan Teachers' College ·2013 ·Master's thesis
  14. Translators' Role as Reception Subjects in the Translation of Walden
    YiHao ·Xiangtan University ·2013 ·Master's thesis
  15. Feminist Consciousness Represented
    HeYuZuo ·Donghua University ·2014 ·Master's thesis
  16. On the Translator's Habitus:a Bourdieusian Perspective on the Translation of Lu Xun's Fictions:Old Stories Retold
    WuYan ·Anhui University ·2014 ·Master's thesis
  17. A Study of Foreign Literature Translation Publishing of Zhonghua Book Company:from1914to1949
    ShenZuoZuo ·Nanjing University ·2012 ·Master's thesis
  18. The Design and Implementation of an Arithmetic Expression Parsing Engine
  19. Recognition of Temporal Relation in Chinese Texts
    WangFengE ·Shanxi University ·2012 ·Master's thesis
  20. Study of Storage Model in Native XML Database
    ZhangZuoZuo ·Shanxi University ·2012 ·Master's thesis