首页 | 本学科首页   官方微博 | 高级检索  
     

设计模式在HTML解析器中的应用
引用本文:伍星,王茜. 设计模式在HTML解析器中的应用[J]. 计算机工程, 2005, 31(2): 89-90,151
作者姓名:伍星  王茜
作者单位:重庆大学计算机学院,重庆,400044;重庆大学计算机学院,重庆,400044
基金项目:国家“十五”科技攻关计划基金资助项目(2001BA101A05)
摘    要:作为一种高级软件重用技术,设计模式可以更加简便地重用成功的设计和体系结构。该文分析了HTML语言(vcrsion4)规范的特点,将HTML语言中的每一个标签抽象成为标签类,设计过程中使用了合成模式和简单工厂模式,避免解析器设计过程中复杂关键字栈的使用,清晰了系统的设计,提高了系统的灵活性和可扩展性。

关 键 词:设计模式:合成模式  简单工厂模式
文章编号:1000-3428(2005)02-0089-02

Application of Design Pattern in HTML Parser
WU Xing,WANG Qian. Application of Design Pattern in HTML Parser[J]. Computer Engineering, 2005, 31(2): 89-90,151
Authors:WU Xing  WANG Qian
Abstract:As an high-class software reuse technique ,design pattern can simply reuse the succeed design and architecture .This article analyses the characteristic of HTML language version 4.0,and abstracts every tag of HTML language as an object.In the process for design ,it makes full use of composite pattern and simple factory pattern to avoid the use of complicated stack, clears the design of system and improves the agility and expansibility of the system.
Keywords:Design pattern  Composite pattern  Simple factory pattern  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号