首页> 外国专利> method and device for validating captioned, orderly parse trees according to a context free grammatikspezifikation

method and device for validating captioned, orderly parse trees according to a context free grammatikspezifikation

机译:上下文无关文法验证字幕,有序解析树的方法和设备

摘要

Some document languages such as the Standard Generalized Markup Language (SGML) represent documents as trees (Fig. 1) with each node of the tree labelled with a tag and each node's immediate descendants taken in order having tags that satisfy a production corresponding to the parent's tag. Thus, a document is represented as a complete parse tree satisfying the production rules of a grammar. To simplify maintaining a valid document/parse tree at all stages, an efficient check is made whether a document is valid or can be extended to a valid document and furthermore to show how a document could be changed to be valid. A document can be extended to a valid document if is equal to a valid document with possibly some nodes deleted. External (leaf) nodes can just be deleted. Internal nodes are deleted by replacing the arc from the parent with multiple arcs (in the same order) from the parent to each of the children of the deleted node. A grammar is constructed from the given grammar that includes those documents that can be completed to a valid document and is called a gapped grammar. This invention teaches how a gapped grammar can be constructed from a grammar, and how a parser/checker is efficiently implemented. IMAGE
机译:诸如标准通用标记语言(SGML)之类的某些文档语言将文档表示为树(图1),树的每个节点都用标签标记,每个节点的直系后代按顺序获得标签,这些标签满足与父级对应的生产标签。因此,文档被表示为满足语法生成规则的完整分析树。为了简化在所有阶段维护有效文档/分析树的过程,将对文档是否有效或可以扩展到有效文档进行有效检查,并进一步说明如何将文档更改为有效文档。如果文档等于可以删除某些节点的有效文档,则可以将其扩展为有效文档。外部(叶)节点只能删除。通过使用从父级到已删除节点的每个子级的多个弧(以相同顺序)替换父级的弧,可以删除内部节点。从给定的语法构建语法,该语法包括可以完成的文档到有效的文档,称为语法缺口。本发明教导了如何可以从文法构建空白文法,以及如何有效地实现解析器/检查器。 <图像>

著录项

  • 公开/公告号DE69425082D1

    专利类型

  • 公开/公告日2000-08-10

    原文格式PDF

  • 申请/专利权人 XEROX CORP. ROCHESTER;

    申请/专利号DE19946025082T

  • 发明设计人 BROWNALLEN L. JR.;MARSHALL SIDNEY W.;

    申请日1994-04-07

  • 分类号G06F17/24;

  • 国家 DE

  • 入库时间 2022-08-22 01:40:30

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号