首页> 外文期刊>Science of Computer Programming >Extending type systems in a library: Type-safe XML processing in C++
【24h】

Extending type systems in a library: Type-safe XML processing in C++

机译:在库中扩展类型系统:C ++中的类型安全XML处理

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

摘要

Type systems built directly into the compiler or interpreter of a programming language cannot be easily extended to keep track of run-time invariants of new abstractions. Yet, programming with domain-specific abstractions could benefit from additional static checking. This paper presents library techniques for extending the type system of C++ to support domain-specific abstractions. The main contribution is a programmable "subtype" relation. As a demonstration of the techniques, we implement a type system for defining type qualifiers in C++, as well as a type system for the XML processing language, capable of, e.g., statically guaranteeing that a program only produces valid XML documents according to a given XML schema.
机译:直接内置于编程语言的编译器或解释器中的类型系统不能轻易扩展以跟踪新抽象的运行时不变量。但是,使用特定于领域的抽象编程可以从其他静态检查中受益。本文介绍了用于扩展C ++类型系统以支持特定于域的抽象的库技术。主要贡献是可编程的“子类型”关系。作为对这些技术的演示,我们实现了一种用于在C ++中定义类型限定符的类型系统以及一种用于XML处理语言的类型系统,例如,可以静态保证程序仅根据给定的条件生成有效的XML文档。 XML模式。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号