I noticed that this version is more complete

https://github.com/d34p/j_prolog/blob/master/prolog.ijs


the goal function crashes jqt804,

I don't get the '''' in frq, but leaving it alone, does let you run the parser 
verb.

  isVar"0 <S:0 {. parse 'sister_of (mary, fred).' 
0 0 0 
  isVar"0 <S:0 {. parse 'sister_of (mary, FF).' 
0 0 1
  isVar"0 <S:0 {. parse 'sister_of (mary, f).' 
0 0 0

is the condition test for goal.  isVar returns true if a word is Proper cased.

this is as far as I got, though.

----- Original Message -----
From: Mike Day <[email protected]>
To: [email protected]
Cc: 
Sent: Thursday, September 17, 2015 5:27 PM
Subject: Re: [Jgeneral] an interesting prolog interpreter

Seems to be Google-translated from Russian or other slavonic -
tasitnY, AyversonOM, menySTRIMNY and "in Prolog-E" are
strong pointers!  Who's the author?

Now to look at prologom... (should be accusative really!)
So far,  I'm having trouble loading the script.  It fails on the
first verb,   frq ...   Trying '''' instead of "'', it then fails on
"parse" !

His/her verbs are certainly tasitny!

Thanks,

Mike

On 17/09/2015 16:23, 'Pascal Jasmin' via General wrote:
> I did not write this
>
> http://sysmagazine.com/posts/201470/
>
> to see the internal representation,
>
> parse prolog_code
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to