【24h】

Strategic pattern matching

机译:战略模式匹配

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

摘要

Stratego is a lenguage for the specification of transformation rules and strategies for applying them.The basic actions of transformations are matching and building instantiations of first-order term patterns.The language supports concise formulation of generic and data type-specific term traversals.One of the unusual features of Stratego is the separation of scope from matching,allowing sharing of variables through traversals.The combination of first-order patterns with strategies forms and expressive formalism for pattern mathcing.In this paper we discuss three examples of strategic pattern matching:(1) Contextual rules allow matching and replacement of a pattern at an arbitrary depth of a subterm of the root pattern.(2) Overlays serve to hide the representation of a language in another (more generic) language.These techniques are illustrated by means of specifications in Stratego.
机译:Stratego是说明转换规则及其应用策略的语言,转换的基本作用是匹配和建立一阶术语模式的实例化,该语言支持简明的通用和特定于数据类型的术语遍历。 Stratego的不寻常特征是将范围从匹配中分离出来,从而允许遍历共享变量。一阶模式与策略形式以及表达形式主义相结合的模式数学。本文讨论了策略模式匹配的三个示例:( 1)上下文规则允许在根模式的子项的任意深度处匹配和替换模式。(2)覆盖用于隐藏另一种(更通用的)语言的语言表示形式。 Stratego中的规格。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号