2017
DOI: 10.1142/s0129054117400068
|View full text |Cite
|
Sign up to set email alerts
|

Derivative-Based Diagnosis of Regular Expression Ambiguity

Abstract: Regular expressions are often ambiguous. We present a novel method based on Brzozowski's derivatives to aid the user in diagnosing ambiguous regular expressions. We introduce a derivative-based finite state transducer to generate parse trees and minimal counter-examples. The transducer can be easily customized to either follow the POSIX or Greedy disambiguation policy and based on a finite set of examples it is possible to examine if there are any differences among POSIX and Greedy.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1

Citation Types

0
3
0

Year Published

2019
2019
2023
2023

Publication Types

Select...
2
2
1

Relationship

1
4

Authors

Journals

citations
Cited by 5 publications
(3 citation statements)
references
References 11 publications
0
3
0
Order By: Relevance
“…Figure 2 illustrates an example of exponential behavior. Many researchers have proposed tools to identify regex-input pairs with worst-case polynomial or exponential behavior [27,30,77,87,89,94,100,101,111,114]. Using the typical Spencer algorithm [97], viz.…”
Section: Regexes and Regex-based Denial Of Servicementioning
confidence: 99%
“…Figure 2 illustrates an example of exponential behavior. Many researchers have proposed tools to identify regex-input pairs with worst-case polynomial or exponential behavior [27,30,77,87,89,94,100,101,111,114]. Using the typical Spencer algorithm [97], viz.…”
Section: Regexes and Regex-based Denial Of Servicementioning
confidence: 99%
“…For (2) we need to enumerate all possible parse trees. This is possible by extending our prior work [20,21] to the regular equation setting. Details are given in Appendix B.…”
Section: Computational Interpretationmentioning
confidence: 99%
“…That is, if a parse exists the parser will succeed. It is possible to compute all parse trees following the scheme outlined in [21]. For brevity, we omit the details.…”
Section: A Proofsmentioning
confidence: 99%