首页> 外文会议>Twenty-First International Workshop on Database and Expert Systems Applications >Modular Specifications of XML Processing Tasks with Attribute Grammars Defined on Multiple Syntactic Views
【24h】

Modular Specifications of XML Processing Tasks with Attribute Grammars Defined on Multiple Syntactic Views

机译:具有在多个语法视图上定义的属性语法的XML处理任务的模块化规范

获取原文

摘要

This paper describes an approach to the modular specification of XML processing tasks. The approach is language-oriented: it considers the programs that process a type of XML documents to be processors (e.g., compilers or interpreters) for the markup language used in these documents. In addition, it encourages the declarative specification of these processors through attribute grammars. In doing so, the syntax of the language must be characterized with a context-free grammar, which is equivalent to the schema of the markup language. In turn, the processing of documents must be characterized with semantic attributes and semantic equations added to this context-free grammar. To manage the difficulty of specifying complex tasks, it is possible to split the specification into several attribute grammars, each dealing with a specific aspect of the processing. In addition, each of these attribute grammars can have a different underlying context-free grammar, which conforms to a syntactic view specially tailored for the processing aspect addressed. To make these specifications executable, this paper proposes a processing engine based on GLR parsing and on a demand-driven attribute evaluation method. Also, examples are given of using this approach with a simple XML-based language for coding arithmetic formulas.
机译:本文介绍了一种XML处理任务的模块化规范的方法。该方法是面向语言的:它认为处理XML文档类型的程序是这些文档中使用的标记语言的处理器(例如,编译器或解释器)。另外,它鼓励通过属性语法声明这些处理器。这样做时,必须使用无上下文语法来描述语言的语法,该语法与标记语言的架构等效。反过来,必须使用添加到此无上下文语法中的语义属性和语义方程来描述文档的处理。为了管理指定复杂任务的难度,可以将规范分为几个属性语法,每个属性语法都处理特定的方面。此外,这些属性语法中的每一个都可以具有不同的基础无上下文语法,这符合为所处理的方面专门定制的语法视图。为了使这些规范可执行,本文提出了一种基于GLR解析和基于需求驱动的属性评估方法的处理引擎。此外,给出了使用这种方法和基于XML的简单语言对算术公式进行编码的示例。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号