Proceedings of the 12th International ACM SIGPLAN Symposium on Principles and Practice of Declarative Programming 2010
DOI: 10.1145/1836089.1836120
|View full text |Cite
|
Sign up to set email alerts
|

Typed and unambiguous pattern matching on strings using regular expressions

Abstract: We show how to achieve typed and unambiguous declarative pattern matching on strings using regular expressions extended with a simple recording operator.We give a characterization of ambiguity of regular expressions that leads to a sound and complete static analysis. The analysis is capable of pinpointing all ambiguities in terms of the structure of the regular expression and report shortest ambiguous strings. We also show how pattern matching can be integrated into statically typed programming languages for d… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
15
0

Year Published

2011
2011
2019
2019

Publication Types

Select...
4
1

Relationship

1
4

Authors

Journals

citations
Cited by 12 publications
(15 citation statements)
references
References 32 publications
0
15
0
Order By: Relevance
“…2 To develop the deterministic parser that corresponds to the nondeterministic parser of the above definition, we first introduce a nondeterministic parser N JrK that consumes at least one letter. It can be recursively defined by using N JrK as follows:…”
Section: The Problematic Casementioning
confidence: 99%
See 2 more Smart Citations
“…2 To develop the deterministic parser that corresponds to the nondeterministic parser of the above definition, we first introduce a nondeterministic parser N JrK that consumes at least one letter. It can be recursively defined by using N JrK as follows:…”
Section: The Problematic Casementioning
confidence: 99%
“…Kw, the proof is basically a straightforward extension of Theorem 2. 2 The behaviour of problematic regular expressions are not described in the manuals of these languages as far as we know. We checked the behaviour by executing matching of several problematic regular expressions in these languages.…”
Section: The Problematic Casementioning
confidence: 99%
See 1 more Smart Citation
“…We have therefore created a concrete implementation of the framework in Java to test this hypothesis. The implementation includes selection functions using regular expressions [1], XPath expressions, and it includes a full browser in order to let client-side computation take place and provide presentational information about the given web page. Furthermore automatic reinduction of validation functions and composition of validation functions as described in Sect.…”
Section: Experimental Validationmentioning
confidence: 99%
“…Parse trees for regular expressions can be formalized as ad-hoc data structures [6,2], representing exactly how the string can be expressed in the regular expression. This means that both membership testing, substring groups and regular expression types can be found by filtering away the extra information in the parse tree.…”
Section: Regular Expressions As Typesmentioning
confidence: 99%