reg-exp-rec
"Typed and Unambiguous Pattern Matching on Strings using Regular Expressions"
Usage
Four simple steps to use the tool:
- Download reg-exp-rec.jar.
- Download grammar-all.jar.
- Be sure to place the jar files in same directory.
- Run java -jar reg-exp-rec.jar <filename>.
This will translate the regular expressions in <filename> to java files.
Examples
Below is a list of (deliberately simplified) examples
- URLs: url.rex
- URLs (using key-val pairs): urlWithKeyVal.rex
- HTTP log files: logfile.rex
- DBLP entries : dblp.rex
- ICalendar: icalendar.rex
Research paper
"Typed and Unambiguous Pattern Matching on Strings using Regular Expressions" by Claus Brabrand and Jakob G. Thomsen: [ abstract | bibtex | paper | tech report | PPDP '10 presentation ]
