【24h】

Pattern-based tree attribution

机译:基于模式的树归因

获取原文

摘要

Attribute grammars have been used for many language-oriented tasks, including the formal description of semantics and the implementation of compilation tasks from simple type checking through code generation. Despite their successful use, attribute grammars have some disadvantages, including the monolithic nature of the grammar and the fixed factoring of all attribute descriptions by a single set of grammar productions. Attribute pattern sets provide a more expressive attribution system by using pattern matching, instead of grammar productions, to perform case analysis. Attribute pattern sets can be implemented in terms of attribute grammars in a way that maintains the dependency structure of the attribute system, making it straightforward to convert many of the practical results from attribute grammar theory to similar results for attribute pattern sets.

机译:属性语法已用于许多面向语言的任务,包括语义的形式描述以及从简单类型检查到代码生成的编译任务的实现。尽管成功使用了属性文法,但它们还是有一些缺点,包括文法的整体性质和由一组语法产生词对所有属性描述的固定分解。 属性模式集通过使用模式匹配而不是语法生成来提供案例分析,从而提供了更具表达力的归因系统。可以根据属性语法来实现属性模式集,这种方式可以维持属性系统的依赖结构,从而可以很容易地将许多实用的结果从属性语法理论转换为相似的属性模式集。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号