【24h】

An algebra for program fragments

机译:程序片段的代数

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

摘要

Program fragments are described either by strings in the concrete syntax or by constructor applications in the abstract syntax. By defining conversions between these forms, both may be intermixed. Program fragments are constructed by terminal and nonterminal symbols from the grammar and by variables having program fragments as values. Basic operations such as valuetransfer, composition and decomposition are defined for program fragments allowing more complicated operations to be implemented. Usual operations such as testing for equality are defined, and in addition more specialized operations such as testing that a program fragment is derivable from another and converting program fragments in concrete form to abstract form are defined. By introducing regular expressions in the grammar these may be used in program fragments in concrete form. By defining constructors for regular expressions these may also be used in program fragments in abstract form.

机译:

程序片段用具体语法中的字符串或抽象语法中的构造函数应用程序描述。通过定义这些形式之间的转换,可以将两者混合在一起。程序片段由语法中的末端和非末端符号以及以程序片段作为值的变量构成。为程序片段定义了诸如值传递,合成和分解之类的基本操作,从而可以实现更复杂的操作。定义了诸如相等性测试之类的常规操作,此外,还定义了诸如测试程序片段可从另一个程序片段派生并将程序片段以具体形式转换为抽象形式之类的更专门的操作。通过在语法中引入正则表达式,可以将这些正则表达式以具体形式用于程序片段中。通过为正则表达式定义构造函数,它们也可以抽象形式用于程序片段中。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号