Implementation of the Parser of TTCN-3 by Parser Generator Based on the Windows System

Author
ZuoJianEn
Advisor
WangJunYi
School
Inner Mongolia University
Major
Applied Computer Technology
Classification
TP316 Operating system
Degree
Master's thesis
Year
2004
Downloads
140
Citations
0

Request the full text

Abstract

TTCN-3 as a specialized language test , which defines a strict syntax and semantic rules . Since it is a new test language specification , there are no such language compiler , runtime environment, foreign TTCN-3 compiler development is also underway . TTCN-3 runtime environment has emerged mostly TTCN-3 translate into another language ( such as IAVA ) , the use of off-the-shelf compiler to compile code conversion , indirect TTCN-3 compiler . TTCN-3 compiler development is an urgent task . In this article focuses on the the parser use YACC tool Parser Generator windows system TTCN-3 compiler system . Syntax analysis is a core part of the compilation process . Its mission is to identify the word string of symbols based on lexical analysis , analysis and determination of the grammatical structure of the program is in line with the rules of grammar . The realization of the process , we use object-oriented technology , the system need to use a variety of data structures , objects are defined . My work : one of TTCN-3 extension syntax rules paradigm rewritten; Second , is to write the a YACC source code for parsing TTCN-3 , which relates to the definition of symbolic objects , the use of the symbol table management login, written in semantic actions , and error handling content ; identifier is generated the actuator driving table and header files in the execution time required to transfer information encoding and decoding operations . Better technology advantages and features of object-oriented technology , the entire development process , we fully introduce the use of this technology , and in the analysis and design phase , we use UML for system analysis and design software to standardize development process , improve work efficiency and progress .

Table of contents

Summary 2-3 ABSTRACT 3-7 first chapter 7-12 1.1 paper background and introduction -8 1.2 Protocol Conformance Test status quo the 1.3 test language status quo 8-9 9-11 1.4 the dissertation structure of 11-12 Chapter II TTCN-3 Introduction 12-24 2.1 Introduction to TTCN-3 12-13 2.2 port, test components and test configuration 13 - 14 2.2.1 port 13-14 2.2.2 testing component of the test system interface 14 2.2.3 test configuration 14 2.3 types, operators, basic program statements and function 14-16 Summary 2.3.1 TTCN-3 type are found; 14-15 the 2.3.2 structure types 15-16 2.3.3 Operators 16 2.3.4 TTCN-3 program statement 16 2.3.5 function, test case 16 2.4 template, the message, the characteristics of the process (SIGNATURE) and matching mechanism 16-18 2.4.1 template 16-17 2.4.2 news 17 2.4.3 template matching mechanisms the 17-18 2.5 behavior statement the 18-19 2.5.1 choice behavior 18 -19 2.5.2 crossover behavior 19 2.5.3 default behavior 19 2.6 configuration operations 19-21 2.6 .1 configuration operating Summary 19 2.6.2 create operating 19-20 2.6.3 connection and mapping 2.6.4 connection and mapping operation 20-21 of 2.7 communication operations 21-22 2.7.1 communication model 21 2.7.2 communication operations classified 21-22 2.8 clock operation, test verdict operating to 22 2.8.1 clocks, operating 22 2.8.2 test verdict operations 22 2.9 test cases and TTCN-3 module control the 22-24 2.9.1 test case the 2.9.2 module control 22-23 23 -24 Chapter compiler theory 24-33 3.1 compile process outlined the 24-25 3.2 lexical analysis 25-26 3.3 syntax 26-27 3.3.1 top-down analysis analysis of 3.3.2 bottom-up on the 26th - LR analysis 26-27 3.4 symbol table 27-31 3.4.1 symbol attributes nbsp 27-29 3.4.2 symbol table of organization and management; 29-31 3.4.3 symbol table initialization 31 3.4.4 symbol login 31 3.4.5 symbol lookup 31 3.5 syntax analysis automatically generates tool YACC 31 3.6 semantic analysis and intermediate code generation 31-33 Chapter TTCN-3 extension syntax the rules rewritten 33-37 4.1 TTCN-3 core language syntax expression - EBNF 33 4.2 EBNF of rewriting 33-35 4.2.1 EBNF to BNF transform methods are found; 33-34 4.2.2 rewrite the BNF is written in the following format 34 4.2.3 EBNF rewritten the 34-35 4.3 syntax conflict resolution 35-37 4.3.1 moved into / reduce conflicts 35-36 4.3.2 Reduction / reduce conflicts nbsp 36-37 Chapter TTCN-3 language parser achieve; 37-55 5.1 Object-Oriented Analysis using UML description 37 -41 5.1.1 UML Overview 37 5.1.2 static model - class diagram 37-39 5.1.3 dynamic model - interaction diagram 39-41 5.2 TTCN-3 YACC source 41-50 YACC source structure 5.2.1 42 5.2.2 Definitions the 42-47 5.2.3 syntax rules part the 5.2.4 user subroutine section 47-49 49-50 5.3 symbol symbol object and symbol table 50-54 5.3.1 Symbol 50 5.3.2 Symbols The object 50-52 5.3.3 symbol table object 52-53 5.3.4 identifier Login 53-54 5.4 Error Handling 54-55 Chapter generate actuator use the driving table and header files 55-59 6.1 driver table and header files generated algorithm 55-57 6.2 header files generated class and drive table generated class definition 57-59 Chapter VII summarizes 59-61 Acknowledgements 61-62 degree during the academic papers 62 - 63 Appendix I: TTCN-3 language YACC source Definitions 63-66 Appendix part of the TTCN-3 language YACC source 66-71

Related dissertations

  1. Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
    QuGuoDong ·Dalian Railway Institute ·2003 ·Master's thesis
  2. TTCN-3Test Suits Generation Approach for Corba Network Management Interfaces
  3. Source Code Assessment System Research and Development
  4. Visual Implementation of Operational Semantics of Procedural Programming Languages
    SunXuDong ·Jilin University ·2008 ·Master's thesis
  5. The Design and Implementation of the DSQL Based on the Domain Data Model
    XuJingRong ·Suzhou University ·2007 ·Master's thesis
  6. Research and Application of Formal Language in Report Systems
    GuoJianXing ·Shanghai Normal University ·2004 ·Master's thesis
  7. The Analysis and Realization of Database Language SQL
    CaiLei ·Tianjin University ·2006 ·Master's thesis
  8. Stack -based virtual machine based development platform for the design and implementation of operational
  9. Linux-based PL/SQL Compiler
    DengXiaoFeng ·Tianjin University ·2005 ·Master's thesis
  10. Research on spatial data manipulation language
    CuiJianJun ·Chang'an University ·2005 ·Master's thesis
  11. Research of VHDL Compiler’s Design Techniques
    QiXingGang ·Sichuan University ·2005 ·Master's thesis
  12. VHDL Compiling System Design Methods and Studies on the Key Techniques
    LiYuan ·Sichuan University ·2005 ·Master's thesis
  13. Protocol Auto-Adapted Communication Technology
  14. The Design and Implementation of LL(1) Action Grammar Compiler’s Automatic Constructor in Java Language
    ZhangHongTao ·Jilin University ·2005 ·Master's thesis
  15. Based on the entity 's non-circular curved surface grinding Research and Implementation of Simulation System
  16. TTCN-3 compiler technology Research and Implementation
    QianXiangHong ·Southwest Jiaotong University ·2004 ·Master's thesis
  17. OCCL Compiler for Linux
  18. Syntax Checking Methods of the Flight Scheduling Rules
  19. Research on SQL Complier of Database Engine
    ZouHui ·Wuhan University of Technology ·2010 ·Master's thesis
  20. Reverse Demonstration of Algorithm in CAI