BerntB has asked for the wisdom of the Perl Monks concerning the following question:
I saw this neat blog post on Planet Perl. I got to think about an idea.
Sounds like a good basis for implementing Prolog! Is there a simple way to compile unification/backtracking in a Prolog program to a Regular Expression?
I should write some code before asking, but I can't be the first (or the fiftieth) person to think of this. You could call other RE:s from the inserted code (the inserted code needs a functionality to fail).
I did search perlmonks and didn't find anything.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using RegExp backtracking to implement Prolog? :-)
by diotalevi (Canon) on Oct 17, 2006 at 16:08 UTC | |
|
Re: Using RegExp backtracking to implement Prolog? :-)
by salva (Canon) on Oct 17, 2006 at 13:55 UTC | |
by BerntB (Deacon) on Oct 17, 2006 at 18:09 UTC | |
|
Re: Using RegExp backtracking to implement Prolog? :-)
by Anonymous Monk on Oct 17, 2006 at 14:09 UTC | |
by BerntB (Deacon) on Oct 17, 2006 at 18:12 UTC |