Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Prolog dialect in Rebol

From: al::bri::xtra::co::nz at: 30-Oct-2000 9:14

gerry wrote:
> 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.
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