prolog-metainterpreter Questions

2

Solved

This answer by Jan Burse shows one of the simplest implementations of a metainterpreter in Prolog: solve(true) :- !. solve((A,B)) :- !, solve(A), solve(B). solve(H) :- clause(H,B), solve(B). I w...
Adalbertoadalheid asked 3/10, 2017 at 5:41

2

Solved

I am using Prolog to encode some fairly complicated rules in a project of mine. There is a lot of recursion, including mutual recursion. Part of the rules look something like this: pred1(X) :- ......
Dday asked 6/11, 2015 at 15:52

3

I need to modify the vanilla meta-interpreter in order to make a search with limited depth. I'm using the following code for testing my sollution: value(wire1,1). connected(wire2, wire1). connecte...
Mendoza asked 23/10, 2011 at 19:44

1

Solved

I have this tracing meta interpreter, altered from previous question Prolog unbind bound variable. I don't understand how to interpret cut. Thanks to user @false who told me that the cut is badly ...
Glue asked 1/12, 2014 at 18:50

1

Solved

I have this tracing meta interpreter. It is written for swi-prolog. trace(Goal):- trace(Goal, 0). trace(true, _Depth):-!, true. trace(fail, _Depth):-!, fail. trace(A > B, _Depth):-!, A > B...
Dorpat asked 1/12, 2014 at 9:35

3

Solved

Right up front: This is not a homework exercise. I’m trying to learn Prolog and this is just a problem that happens to need solving and for which Prolog is a perfect fit. I have a bunch of family ...
Highness asked 15/10, 2014 at 1:11

1

I wanna create an expert system with meta-interpreter with SWI-Prolog... what is the best and the easier way to make it? which is the procedure to make it?
Newsletter asked 12/11, 2010 at 14:36
1

© 2022 - 2024 — McMap. All rights reserved.