[REBOL] Re: Prolog dialect in Rebol
From: al::bri::xtra::co::nz at: 30-Oct-2000 9:14
> Just a thought,Can't Prolog be embeded in rebol? just like this:
> log-block? [gerry,carl,bo,jane,chaz]
> => true
> log-block? [write(hello),nl,fail.]
> logic-database: [
> rebol(X) :- prolog(X).
> prolog(any). ]
> do-logic ;[cr]
> :- consult(logic-database).
> any comments? or just ignore all above.
You'll have a problem with block with the extra punctuation that Prolog insists upon.
But if you read it as a string from a file, you can use parse to interpret it.
Or, better still, write some logic/prolog compatible stuff for Rebol, and forget syntax...