作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 1993, Vol. 19 ›› Issue (03): 54-58.

• 论文 • 上一篇    下一篇

具有实例学习功能的增量逆句法分析器的设计

徐智晨,钱家骅   

  1. 复旦大学
  • 发布日期:1993-06-25

THE DESIGN OF AN EXAMPLE-LEARNING INCREMENTAL UNPARSER

Xu Zhichcn et al   

  • Published:1993-06-25

摘要: 本文介绍了一种具有实例学习功能的增量逆句法分析工具的构造技术.文中采用属性文法描述程序设计语言的排版信息.文中的排版属性和排版风格信息的表示具有很好的语言独立性.特别,排版属性集与属性计值过程还具有产生式独立性.文中的方法可为开发句法制导的编辑工具、混合的编辑工具、程序美观排版工具提供性能优良的逆句法分析程序.特别由于文中排版信息描述与计值过程的语言独立性与产生式独立性使得文中的方法还可以用于构造通用的逆句法分析工具.*

关键词: 属性文法, 增量逆句法分析器, 句法制导的编辑器, 混合编辑器, 抽象语法树

Abstract: The design and implementation of an incremental unparser that can learn by example is discussed.Attribute grammar is used to describe the indentation and type-setting information of the program.The attribute set and incremental attribute evaluation process proposed are language independent, thus well suited for the construction of (general-purpose) pretty printers, syntax-directed editors and hybrid editors.