Logo image
Derivative-Based Diagnosis of Regular Expression Ambiguity
Conference proceeding   Peer reviewed

Derivative-Based Diagnosis of Regular Expression Ambiguity

Martin Sulzmann and Kenny Zhuo Ming Lu
IMPLEMENTATION AND APPLICATION OF AUTOMATA, Vol.9705, pp.260-272
Lecture Notes in Computer Science
01/01/2016

Abstract

Computer Science Computer Science, Software Engineering Computer Science, Theory & Methods Science & Technology Technology
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.

Metrics

1 Record Views

Details

Logo image