Prolog dialect in Rebol
[1/2] from: gerryxiao:netease at: 28-Oct-2000 19:50
Hi rebols, 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.] =>true logic-database: [ rebol(X) :- prolog(X). prolog(facts). prolog(predicates). prolog(clauses). prolog(unifications). prolog(any). ] do-logic ;[cr] :- consult(logic-database). =>yes :rebol(X),write(X),nl,fail. => facts predicates clauses unifications any no any comments? or just ignore all above. --gerry
[2/2] 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]
<<quoted lines omitted: 20>>> no > 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... Andrew Martin
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted