Yield Prolog

lets you embed programs directly in or (or JavaScript, coming soon) by using the yield keyword.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Prolog in Javascript

Somebody did Prolog in Javascript once already, but this looks much less complicated, and having it directly in Javascript is also a lot more useful.

Nice!

I'll try to find a use for this in GUI design.

Hate to be pedantic...

But shouldn't this really be called "Yield Horn Clauses"? The python and (espcially the) C# code looks nothing like prolog.

"Yield Horn Clauses"

Indeed. I called it "Yield Prolog" because I don't know of any other
horn clause implementation (just my lack of knowledge).
Calling it "Prolog" gets the idea across quickly. Besides,
in my dreams I imagine writing a "compiler" to convert
Prolog code to "Yield Prolog".

- Jeff (Yield Prolog author)

Yield Prolog 1.0 Released

For anyone still reading this thread, Yield Prolog 1.0 has been released. Indeed, the compiler is no longer just "in my dreams." Yield Prolog has a parser, compiler, interactive shell and passes most of the ISO Prolog test suite. See the announcement at:
http://sourceforge.net/forum/forum.php?forum_id=850061

Thanks!

This last post made me aware of it.