AJBM Posted May 24, 2014 at 01:47 PM Report #556868 Posted May 24, 2014 at 01:47 PM Boas! Estou a tentar interligar prolog com java, mas estou a ter dificuldades, estou a usar a api jpl,e tenho este código a primeira query devolve true. String sistema = "consult('./teste.pl')"; Query query = new Query(sistema); System.out.println(""+query.hasSolution()); Query q3= new Query("ola(2,A)"); System.out.println(q3.oneSolution().get("A")); e a segunda da-me este erro. PrologException: error(syntax_error(operator_expected), string('ola(2,A . ', 8))
HappyHippyHippo Posted May 24, 2014 at 03:01 PM Report #556878 Posted May 24, 2014 at 03:01 PM todas os predicados acabam com o ponto final IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now