【24h】

XML Validation for Context-Free Grammars

机译:上下文无关文法的XML验证

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

摘要

String expression analysis conservatively approximates the possible string values generated by a program. We consider the validation of a context-free grammar obtained by the analysis against XML schemas and develop two algorithms for deciding inclusion L(G_1) is contained in L(G_2) where G_1 is a context-free grammar and G_2 is either an XML-grammar or a regular hedge grammar. The algorithms for XML-grammars and regular hedge grammars have exponential and doubly exponential time complexity, respectively. We have incorporated the algorithms into the PHP string analyzer and validated several publicly available PHP programs against the XHTML DTD. The experiments show that both of the algorithms are efficient in practice although they have exponential complexity.
机译:字符串表达式分析保守地估计程序生成的可能的字符串值。我们考虑了对XML模式进行分析后获得的上下文无关文法的验证,并开发了两种用于确定包含性的算法L(G_1)包含在L(G_2)中,其中G_1是上下文无关文法,而G_2是XML-语法或常规对冲语法。 XML语法和常规对冲语法的算法分别具有指数和双指数时间复杂度。我们已将算法整合到PHP字符串分析器中,并针对XHTML DTD验证了几个公开可用的PHP程序。实验表明,尽管两种算法都具有指数复杂性,但它们在实践中都是有效的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号