Implementation of the Parser of TTCN-3 by Parser Generator Based on the Windows System
|School||Inner Mongolia University|
|Course||Applied Computer Technology|
|Keywords||TTCN-3 LEX YACC Lexical analysis Parsing UML|
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 .