Page 1 of 1

Non-determ predicates implimented in foreign code

Posted: 31 May 2022 13:49
by sbishop61
Is there a way to impliment non-determ predicates in foreign languages?

I imagine it would need some way of informing the foreign languages of Initial call, Redo call and Terminate call; or similar.

Re: Non-determ predicates implimented in foreign code

Posted: 1 Jun 2022 10:10
by Thomas Linder Puls
No, that is not supported. Backtracking is done in a rather unique way, that requires a lot of "low-level" activity.

We do not invoke a "redo call", we read certain values in a backtrack point "record" and set various processor registers (Instruction pointer, stack top, frame pointer) and that obviously only makes sense if everything is low-level prepared for exactly that.