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
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
- Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
- TTCN-3Test Suits Generation Approach for Corba Network Management Interfaces
- Source Code Assessment System Research and Development
- Visual Implementation of Operational Semantics of Procedural Programming Languages
- The Design and Implementation of the DSQL Based on the Domain Data Model
- Research and Application of Formal Language in Report Systems
- The Analysis and Realization of Database Language SQL
- Stack -based virtual machine based development platform for the design and implementation of operational
- Linux-based PL/SQL Compiler
- Research on spatial data manipulation language
- Research of VHDL Compiler’s Design Techniques
- VHDL Compiling System Design Methods and Studies on the Key Techniques
- Protocol Auto-Adapted Communication Technology
- The Design and Implementation of LL(1) Action Grammar Compiler’s Automatic Constructor in Java Language
- Based on the entity 's non-circular curved surface grinding Research and Implementation of Simulation System
- TTCN-3 compiler technology Research and Implementation
- OCCL Compiler for Linux
- Syntax Checking Methods of the Flight Scheduling Rules
- Research on SQL Complier of Database Engine
- Reverse Demonstration of Algorithm in CAI