Treffer: A Method for Automatic Program Inversion Based on LR(0) Parsing.
Title:
A Method for Automatic Program Inversion Based on LR(0) Parsing.
Authors:
Glück, Robert1 glueck@acm.org, Kawabe, Masahiko2 kawabe@suou.waseda.jp
Source:
Fundamenta Informaticae. 2005, Vol. 66 Issue 4, p367-395. 29p.
Subject Terms:
Database:
Academic Search Index
Weitere Informationen
We describe a method for automatic program inversion of first-order functional programs based on methods of LR(0) parsing. We formalize the transformation and illustrate it with several example programs. We approach one of the main problems of automatic program inversion - the elimination of nondeterminism - by viewing an inverse program as a context-free grammar. We apply LR-based parsing methods to turn a nondeterministic program into a deterministic program. This improves the efficiency of the inverse programs and greatly expands the application range of our earlier method for program inversion. [ABSTRACT FROM AUTHOR]