The Design and Implementation of ANTLR-Based TTCN-3 Parser

Author
ZhaoLiJun
Advisor
WangXianRong
School
Inner Mongolia University
Major
Computer Software and Theory
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2010
Downloads
61
Citations
0

Request the full text

Abstract

With the computer and network technology developing continually, people pay attention to the test more and more.As a flexible and powerful test description language,TTCN-3 is increasingly recognized by people.But TTCN-3 commercial softwares are expensive, which limits the widespread use of TTCN-3 to some extent. The target of this thesis is to design and implement a TTCN-3 compiler on the basis of the AO stage in the European Union Go4IT project.TTCN-3 compiler has a very important role in the TTCN-3 test platform, and its main function is to translate the TTCN-3 abstract test suite into the executable test suite described with high-level programming language.The testing is done by running the ETS in the test execution platform. The TTCN-3 compiler is divided into the front-end and the back-end. The front-end refers to the process from lexical analysis to middle representation generation and the back-end refers to the process from the middle representation to the object code generation. TTCN-3 parser designed in the thesis is the front-end of the TTCN-3 compiler, and it contains lexical analysis,syntax analysis, semantic analysis and the generation of syntax tree, which is the middle representation of the TTCN-3 test suite.The thesis designs the overall framework of the TTCN-3 parser, and some data structures,for example, syntax tree and symbol table, by analyzing the TTCN-3 core language, compiler theory, the implementation approach of TTCN-3 compiler and using the implementation scheme that is generating the TTCN-3 lexer and TTCN-3 parser automatically by ANTLR,which is a compiler generation tool. Considering that some complex characteristics exist in TTCN-3,such as advanced reference, the TTCN-3 parser is implemented by twice scanning. Lexical analysis and syntax analysis have been done, and syntax tree and symbol table have been generated by firstly scanning. Basing on the syntax tree and symbol table, semantic analysis has been done by secondly scanning.

Table of contents

Abstract 4-6 ABSTRACT 6-8 directory 8-10 chart catalog 10-12 first a chapter of introduction 12-15 1.1 background and development project application status 12 1.2 research objectives and content of this article 12-13 1.3 abbreviations 13-14 1.4 paper structure 14-15 Chapter Overview of TTCN-3 and ANTLR 15-22 2.1 test description language TTCN- 3 and test 15-17 2.2 TTCN-3 test architecture 17-18 2.3 ANTLR Overview 18-22 Chapter TTCN -3 analyzer analysis and design 22-38 3.1 TTCN-3 compiler implementation approach and build process 22-24 3.2 ANTLR-based analysis of TTCN-3 the realization of design 24-26 3.2.1 TTCN-3 language rules describe 24-25 3.2.2 ANTLR-based parser TTCN-3 design analysis 25-26 3.3 TTCN-3 syntax tree design 26-29 3.3.1 syntax tree storage structure 27 3.3.2 syntax tree nodes design 27-29 3.4 static semantic analysis tasks 29 3.5 TTCN-3 type compatibility analysis 29-31 3.6 TTCN -3 symbol table of contents , organization and operation of the interface analysis 31-38 Chapter TTCN-3 parser implementation 38-58 4.1 lexical analysis to achieve 38-40 4.1.1 lexical analysis Introduction 38 4.1.2 lexical analysis to achieve 38-40 4.2 syntax analysis to achieve 40-46 4.2.1 parser function 40-41 4.2.2 parser construction 41-43 4.2.3 parsing the realization 43-46 4.3 symbol table and its interface implementation 46-49 4.4 scope Checking the realization 49-50 4.5 TTCN-3 static semantic analysis to achieve 50-56 4.5.1 Statement of semantic processing 50-53 4.5.2 Processing semantics of the statement is executed 53-56 4.6 TTCN-3 analyzer to achieve overall 56-58 Chapter example application 58-65 5.1 DNS test suite and its Description 58-60 5.2 analysis of the DNS test suite 60-65 Chapter 6 Conclusion Looking 65-67 6.1 this work summarizes 65-66 6.2 future Work Prospects 66-67 References 67-69 Thanks 69

Related dissertations

  1. Research and Development of the Executable Test Case Generation System in TPT
    ZengFei ·Southwest Jiaotong University ·2006 ·Master's thesis
  2. Study and Implementation of the Parser for a General Modeling Language for Multi-domain System
  3. TTCN-3 compiler technology Research and Implementation
    QianXiangHong ·Southwest Jiaotong University ·2004 ·Master's thesis
  4. The Construction of Complier for SQL--Basing on Linux Operating System
  5. The Design and Research of Service Supporting ETS Based on TTCN-3
    WangZuoZuo ·Inner Mongolia University ·2008 ·Master's thesis
  6. Research & Implementation of Content Query Language for Content Management System
    ZhangLiang ·Shanghai Jiaotong University ·2008 ·Master's thesis
  7. Research and Implementation on Conversion Framework of Test Scripts Based on Reverse Engineering
    WangXue ·Beijing Jiaotong University ·2009 ·Master's thesis
  8. Research and Implementation of Block Cipher Special Description Language
  9. Design and Implementation of A Monitoring Probe Description Language and Compiler
  10. Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
  11. The Design and Implementation of a Complier for SCADA Based on C
  12. Backend Porting for CSKY Based on LLVM Compiler Infrastructure
    HuMin ·Zhejiang University ·2014 ·Master's thesis
  13. Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
    GongCai ·Anhui University ·2014 ·Master's thesis
  14. The Embedded SRAM Compiler Design and IP Verification
    LiuXiaoQing ·Anhui University ·2014 ·Master's thesis
  15. Design and research of testing system of MPLS L2VPN protocol based on TTCN-3
  16. TTCN-3Test Suits Generation Approach for Corba Network Management Interfaces
  17. Research on Conformance Testting of LDP Protocol Based on E-Lotos
    GuoXiaoQing ·Inner Mongolia University ·2012 ·Master's thesis
  18. Design and Implementation for Consistency Test Tool of DSRC Standard Based on ETC
  19. The XML Indexing and Retrival Based on Lucene
    XieZuo ·South China University of Technology ·2012 ·Master's thesis
  20. Design and Implementation of SQL Compiler on Column-Oriented Database
    ZhenZhen ·South China University of Technology ·2012 ·Master's thesis