The Design and Implementation of Lexical Parser and Part Semantic Analysis of TTCN-3 Compiler
- Author
- SunMei
- Advisor
- WangJunYi
- School
- Inner Mongolia University
- Major
- Applied Computer Technology
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2004
- Downloads
- 269
- Citations
- 4
Abstract
The agreement is the soul of the computer network . Protocol conformance test is used to verify the consistency between the implementation of computer network communication protocol with the appropriate protocol standards is key to ensure the correct interconnection and interoperability of various computer systems . TTCN-3 is a standardized test specification language , which has advanced test specification , is a new test description language , not only to achieve conformance testing , and the network can be all-round test . TTCN-3 (Testing and Test Control Notation 3) [1] is a text-based language , very similar to the general-purpose high-level programming language syntax and semantics . Compared with the previous TTCN in the form of a larger change in the content of the end of the previous version due to multiple expansion conceptual confusion , the unification of concepts and definitions , simplifying the said . But as before , the use of TTCN-3 abstract test program description can not be directly executed it needs to go through the build system before it can be performed on the test platform . TTCN-3 test platform architecture is very different from the past mainly Conformance Testing platform . As an important part of the network test , TTCN - 3 compiler system and the corresponding test platform in China is still blank. For these reasons, the paper tries to TTCN-3 core language compiler . The whole compiler syntax analysis led , lexical analysis subroutine using syntax-directed translation . The final design by the TTCN-3 virtual machine generation : intermediate code file header files driving table . In the implementation, we use the compiler construction tools Parser Generator supports object-oriented lexical structure and syntax structure of integrated tools . In accordance with the object-oriented approach , given the overall design concept of the TTCN-3 compiler system , the use of tools Parser Generator TTCN-3 lexical design and semantic design, and gives the main algorithm .
Table of contents
Abstract 5-6
ABSTRACT 6-8
Chapter Introduction 8-11
1.1 protocol test 8 <br / > 1.2 TTCN-3 (THE TESTING AND TEST CONTROL NOTATION VERSION 3) 8-9
1.3 Test Tool status 9
1.4 research objectives 9-10 < br /> 1.5 development tools and development environments 10-11
Chapter relevant background knowledge 11-22
2.1 protocol test 11
2.2 test description language TTCN-3 Introduction 11-20
2.2.1 port, test components and test configuration (test configurations) 13-15
2.2.2 Types, Operators , the basic program statements and function 15-16
2.2.3 template, message, process signature (signature) and matching mechanism 16-17
2.2.4 behavioral statements 17-20
2.3 related build theories 20-22
2.3.1 compilation process and compile the program structure 20
2.3.2 Overview of the compilation process 20-22
Chapter TTCN-3 compiler's overall design 22-31
3.1 Preparations 22-23
3.1.1 rewrite rules 22-23
3.2 overall design concept 23-28
3.2.1 master module design 24-28
3.3 intermediate code 28-31
3.3.1 Program Structure Organization pseudo operation 28-29
3.3.2 opcode 29-31
Chapter lexical analyzer realization 31-38
4.1 lexical analysis structural design 31-33
4.1.1 ALEX principle 31-32
4.1.2 LEX source structure 32
4.1.3 lexer object model 32-33
4.2 TTCN-3 in the configuration word symbols 33-36 < br /> 4.3 the design process some processing 36-38
Chapter TTCN-3 semantics design and implementation 38-64
5.1 semantic design work before 38-40
5.2 TTCN-3 portion semantic design 40-54
5.2.1 Dynamic declaration statement processing 40-43
5.2. 2 Configure the operation of translation (configuration statements) 43-46
5.2.3 communication operations (Communication operations) 46-54
5.3 behavioral statements (BEHAVIOURAL PROGRAM STATENENTS) 54-59
5.3.1 alt statement 54-58
5.3.2 repeat statement 58-59
5.4 default mechanism (DEFAULT MECHANISM) 59-62
5.5 Timer Operation (TIMER OPERATIONS) 62-63
5.6 Summary 63-64
Conclusion 64-65
Thanks 65-66
References 66
Related dissertations
- The Research and Implementation of ERP Testing Based on TTCN-3
- Study on the Mechanical System and the Key Technology of the Stair Climbing Robot Which Can Omnibearing Walk
- The Design of PC Type Tester for Dial Indicator Gauges
- Design and Implementation of RFID Reader Based on Virtual Radio Technology
- Research and Design of AVR-based RFID Reader
- Design and Implementation of HRMS Based on Active Database Technology
- Design and Implementation of Java Refactoring Plug-in Based on Eclipse
- Design and Implementation of the Nanjing Railway Vocational and Technical College Employment Management System
- Design and Implementation of Examination Management System of Anhui Sanlian College
- Workload Generation Techniques for Process-Aware Information Systems
- Design&Implementation of Military Asset Management System
- Design and Implementation of Tobacco Monopoly Management Information System
- SINS/GPS Inertial Integrated Navigation System
- Design and Implementation of Radar’s Electrify Console
- Design of Video Monitor Based on Android
- Research of Radio Channel Based on a Localization Rescue System in Disasters
- Design and research of testing system of MPLS L2VPN protocol based on TTCN-3
- The Design and Implementation of the FPGA Based Verification and Testing Platform of NoC
- Based on the40Nm Process LVDS Design and Implementation
- Functional Verification of YHFT-DX High Performance DSP