Simplifying regular expressions further

被引:0
|
作者
Kahrs, Stefan [1 ]
Runciman, Colin [2 ]
机构
[1] Univ Kent, Sch Comp, Canterbury CT2 7NF, Kent, England
[2] Univ York, Dept Comp Sci, York YO10 5GH, N Yorkshire, England
关键词
Regular expression; Algebraic simplification; Semantic simplification; UNIFORM RANDOM GENERATION; DERIVATIVES;
D O I
10.1016/j.jsc.2021.08.003
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We describe a cumulative series of transformations to simplify regular expressions, and investigate their effectiveness and cost. Transformations depending on increasingly powerful comparisons of expressions give results clearly superior to commonly used algebraic simplifications. Early in the series, efficient transformations enabled by language-invariant attributes are surprisingly effective. Later in the series, transformations depending on comparisons of expressed languages are made feasible by bounding the size of subexpressions to which they are applied. We set out the principles of our transformations, address some key implementation issues, and evaluate the results of systematic test measurements. Crown Copyright (C) 2021 Published by Elsevier Ltd. All rights reserved.
引用
收藏
页码:124 / 143
页数:20
相关论文
共 50 条
  • [41] Modelling the semantics of calendar expressions as extended regular expressions
    Niemi, Jyrki
    Carlson, Lauri
    FINITE-STATE METHODS AND NATURAL LANGUAGE PROCESSING, 2006, 4002 : 179 - +
  • [42] The generalized regular expressions of conditions
    Popa, Emil Marin
    5th RoEduNet IEEE International Conference, Proceedings, 2006, : 272 - 274
  • [43] ADDING REGULAR EXPRESSIONS TO PASCAL
    SHARPE, D
    SIGPLAN NOTICES, 1988, 23 (12): : 125 - 133
  • [44] COMPLEXITY MEASURES FOR REGULAR EXPRESSIONS
    EHRENFEUCHT, A
    ZEIGER, P
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1976, 12 (02) : 134 - 146
  • [45] The Complexity of Regular(-Like) Expressions
    Holzer, Markus
    Kutrib, Martin
    DEVELOPMENTS IN LANGUAGE THEORY, 2010, 6224 : 16 - 30
  • [46] Parameterized Regular Expressions and Their Languages
    Barcelo, Pablo
    Libkin, Leonid
    Reutter, Juan L.
    IARCS ANNUAL CONFERENCE ON FOUNDATIONS OF SOFTWARE TECHNOLOGY AND THEORETICAL COMPUTER SCIENCE (FSTTCS 2011), 2011, 13 : 351 - 362
  • [47] Derivatives for Enhanced Regular Expressions
    Thiemann, Peter
    IMPLEMENTATION AND APPLICATION OF AUTOMATA, 2016, 9705 : 285 - 297
  • [48] Games for Succinctness of Regular Expressions
    Vilander, Miikka
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2021, (346): : 258 - 272
  • [49] Automatic Checking of Regular Expressions
    Larson, Eric
    2018 IEEE 18TH INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM), 2018, : 225 - 234
  • [50] On the Uniform Distribution of Regular Expressions
    Broda, Sabine
    Machiavelo, Antonio
    Moreira, Nelma
    Reis, Rogerio
    DESCRIPTIONAL COMPLEXITY OF FORMAL SYSTEMS, DCFS 2021, 2021, 13037 : 13 - 25