Simple Prolog predicates in javascript -



Simple Prolog predicates in javascript -

is there battle-tested way of declaring (simple) prolog predicates , assert facts, in javascript client code?

the best find http://www.csse.monash.edu.au/~lloyd/tildelogic/prolog.toy/ch/04.techn1.shtml looks it's calling server-side "toy" interpreter.

the nice thing prolog has nice backtracking , unification engine built in language itself. javascript (as languages, btw) doesn't have this, there no way prolog-style functionality "for free".

what can do, of course, write interpreter subset of prolog (or library somewhere) , pass predicates it, encoded nice js info structure.

but then, why want @ all? need backtracking? need complex unification? perhaps writing recursive search function suffice? question doesn't give many details.

javascript prolog logic

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -