Design of Information Extracting Modularization for Context-free Languages

Zhu Li · Jisuanji gongcheng · 2006

Lex and Yacc are used to analyze the Lexis and grammar of the languages defined by context-free grammars,and an independent information extracting module is built to extract the information of source files for white-box testing.The whole grammar system for a tested language accorded with the criterion of Yacc is built,and the system is logically divided into two primary parts,class grammar and function grammar.Sentence structure and sentence linked list structure express the function definition using block and level when they extract function information.The structure information is put into the database to be used for other modules,thus the modules are completely independent.In this way,only need to design different information extraction modules,various context-free grammar languages for white-box testing can be realized.

Read the paper · More papers on PaperTik