Towards an Effective Syntax and a Generator for Deterministic Standard Regular Expressions
Towards an Effective Syntax and a Generator for Deterministic Standard Regular Expressions
复制标题
走向有效的语法和确定性标准正则表达式的生成器
DOI:
10.1093/comjnl/bxy110
复制
发表时间:
2018
期刊:
影响因子:
--
通讯作者:
Haiming Chen
中科院分区:
文献类型:
--
作者:
Zhiwu Xu;Ping Lu;Haiming Chen
Deterministic regular expressions are a core part of XML Schema and used in other applications. But unlike regular expressions, deterministic regular expressions do not have a simple syntax, instead they are defined in a semantic manner. Moreover, not every regular expression can be rewritten to an equivalent deterministic regular expression. These properties of deterministic regular expressions put a burden on the user to develop XML Schema Definitions and to use deterministic regular expressions. In this paper, we propose a syntax for deterministic standard regular expressions (DREGs), and prove that the syntax of DREGs is context-free. Based on the context-free grammars for DREGs, we further design a generator for DREGs, which can generate DREGs randomly, and be used in applications associated with DREGs, e.g. benchmarking a validator for DTD or XML Schema, and inclusion checking of DTD and XML Schema. Experimental results demonstrate the efficiency and usefulness of the generator.