Font Size: a A A

Designing And Implementation Of An Interpreter Based On SDG-HAZOP, Based On The Language Similar To C

Posted on:2008-03-24Degree:MasterType:Thesis
Country:ChinaCandidate:J B SunFull Text:PDF
GTID:2178360215980814Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
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.
Keywords/Search Tags:translator, symbol table, syntax analysis, syntax tree
PDF Full Text Request
Related items