Logo image
Derivative-Based Diagnosis of Regular Expression Ambiguity
Journal article   Peer reviewed

Derivative-Based Diagnosis of Regular Expression Ambiguity

Martin Sulzmann, Kenny Zhuo Ming Lu and Zhuoming Kenny Lu
International journal of foundations of computer science, Vol.28(5), pp.543-561
01/08/2017

Abstract

Computer Science Computer Science, Theory & Methods Science & Technology Technology
Regular expressions are often ambiguous. We present a novel method based on Brzozowskis 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 between POSIX and Greedy.

Metrics

1 Record Views

Details

Logo image