Package jpl

Examples of jpl.Compound


  public static boolean testExternalCallAst () {
    Variable N = new Variable("N");
    jpl.Integer One = new jpl.Integer(1);
    jpl.Integer Thirteen = new jpl.Integer(13);
    Query q = new Query(
        new Compound(";", new Term[]{
            new Compound("succ", new Term[] { Thirteen, N}),
            new Compound("succ", new Term[] { One, N})}));
           
    int sum = 0;
    while (q.hasMoreSolutions()) {
      @SuppressWarnings("unchecked")
      Hashtable<Variable, Term> binding = (Hashtable<Variable, Term>) q.nextSolution();
View Full Code Here

TOP

Related Classes of jpl.Compound

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.