摘要
利用已有的软件工具开发大型软件是事半功倍的选择。lex和yacc是UNIX系统提供的两个重要工具。用它们可以在较高层次上编写诸如语法分析和编译程序之类的系统,但它们原是为开发面向字符流输入的软件而设计的,不能直接用于开发基于事件驱动的软件系统。文中首先分析并给出了yacc和lex生成的字符流语法分析程序的主流程,然后按照事件驱动系统的特殊需要进行了拓展和改进,给出了利用它们来开发基于事件驱动的语法分析软件的方法,并介绍了该方法在基于Motif标准的GUI符号运算软件系统STAR研制中的实际应用。
While developing a software, one of the effective methods is using existed software tools. Unix utilities yacc and lex are important software tools. They can be used to develop syntax analyzing pro- gram and compiling program, but can not be used to write message-driven software directlyt because. In the paper,we give out the main flowchart of the syntax analyzing program first, then modify the program generatd by standard yacc and lex,and manage to use them to develop m-essage-driven syntax analyzer.The application of this method in STAR (Small tool for Algebraic Research), which is a symbolic computation software in Motif developed by MMRC, is also introduced in this paper.
出处
《计算机工程与设计》
CSCD
北大核心
1999年第1期17-23,共7页
Computer Engineering and Design
基金
国家攀登计划项目"机器证明及其应用"资助