Electronic Notes in Theoretical Computer Science · 2003 · 31 citations · 8 references
ComputingComputer ScienceComputational LinguisticsNatural Language ProcessingProgramming LanguagesAbstract Syntax TreesFunctional ProgrammingFunctional SyntaxSyntactic AnalysisSyntax AnalysisType SystemsLambda Calculus SemanticsRegular ExpressionsText Processing Scripts
We present λre, a minimal functional calculus with regular expression types for strings, in order to establish a theoretical foundation of using regular expressions as types of strings in text processing languages. The major technical novelties in this paper (with respect to other work such as XDuce) are (1) the use of regular expression effects to statically analyze the shape of the output of an even diverging program and (2) the treatment of as-patterns in non-tail positions. We expect that our approach will be of help for bringing the merits of static typing into scripting languages such as Perl, Python, and Ruby without sacrificing too much of their expressiveness and flexibility.
8
Haruo Hosoya, Benjamin C. Pierce · ACM Transactions on Internet Technology · 2003 · 340 citations
Regular expression types for XML
Haruo Hosoya, Jérôme Vouillon, Benjamin C. Pierce · 2000 · 178 citations · Full text
Regular expression pattern matching for XML
Haruo Hosoya, Benjamin C. Pierce · 2001 · 132 citations · Full text
Alain Frisch, Giuseppe Castagna, Véronique Benzaken · 2003 · 97 citations