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 条
  • [21] A Play on Regular Expressions
    Fischer, Sebastian
    Huch, Frank
    Wilke, Thomas
    ICFP 2010: PROCEEDINGS OF THE 2010 ACM SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, 2010, : 357 - 368
  • [22] DERIVATIVES OF REGULAR EXPRESSIONS
    BRZOZOWSKI, JA
    JOURNAL OF THE ACM, 1964, 11 (04) : 481 - &
  • [23] INTERSECTION OF -ω-REGULAR EXPRESSIONS
    Chebotarev, A. N.
    CYBERNETICS AND SYSTEMS ANALYSIS, 2021, 57 (05) : 676 - 684
  • [24] Explanations for Regular Expressions
    Erwig, Martin
    Gopinath, Rahul
    FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, FASE 2012, 2012, 7212 : 394 - 408
  • [25] Regular expressions of conditions
    Popa, Emil Marin
    WSEAS Transactions on Information Science and Applications, 2007, 4 (01): : 226 - 229
  • [26] Refactoring With Regular Expressions
    Spinellis, Diomidis
    IEEE SOFTWARE, 2024, 41 (06) : 29 - 33
  • [27] Hybrid regular expressions
    Li, XD
    Zheng, T
    Hou, JM
    Zhao, JH
    Zheng, GL
    HYBRID SYSTEMS: COMPUTATION AND CONTROL, 1998, 1386 : 384 - 399
  • [28] Implication of regular expressions
    Thomo, Alex
    APPLIED MATHEMATICS LETTERS, 2012, 25 (10) : 1394 - 1398
  • [29] Synchronized regular expressions
    Giuseppe Della Penna
    Benedetto Intrigila
    Enrico Tronci
    Marisa Venturini Zilli
    Acta Informatica, 2003, 39 : 31 - 70
  • [30] Memoized Regular Expressions
    Van der Merwe, Brink
    Mouton, Jacobie
    Van Litsenborgh, Steyn
    Berglund, Martin
    IMPLEMENTATION AND APPLICATION OF AUTOMATA (CIAA 2021), 2021, 12803 : 39 - 52