首页> 外文期刊>Computing reviews >Linearly ordered attribute grammars: with automatic augmenting dependency selection
【24h】

Linearly ordered attribute grammars: with automatic augmenting dependency selection

机译:线性排序的属性语法:具有自动扩充依赖项选择

获取原文
获取原文并翻译 | 示例

摘要

An attribute grammar (AG) is a context-free grammar extended to describe the decoration of trees corresponding to sentences defined by that context-free grammar. It provides a declarative specification from which tree computation code can be generated, provided that the AG meets certain conditions. The goal of this paper is to generate code that visits each node of a tree a bounded number of times, and computes a fixed set of attributes on each visit to a node. Unfortunately, generating such code is an NP-complete problem.
机译:属性语法(AG)是一种上下文无关的语法,被扩展为描述与该上下文无关的语法定义的句子相对应的树的修饰。它提供了一个声明性规范,只要AG满足某些条件,就可以从中生成树计算代码。本文的目标是生成访问树的每个节点一定次数的代码,并在每次访问节点时计算出一组固定的属性。不幸的是,生成这样的代码是一个NP完全问题。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号