lojix/prolog/src/main/com/thesett/aima/logic/fol/prolog/PrologInterpreter.java
public static void main(String[] args)
    {
        try
        {
            VariableAndFunctorInterner interner =
                new VariableAndFunctorInternerImpl("Prolog_Variable_Namespace", "Prolog_Functor_Namespace");
            PrologCompiler compiler = new PrologCompiler(interner);
            PrologResolver resolver = new PrologResolver(interner);
            Parser<Clause, Token> parser = new InteractiveParser(interner);

            PrologEngine engine = new PrologEngine(parser, interner, compiler, resolver);
            engine.reset();

            ResolutionInterpreter<PrologCompiledClause, PrologCompiledClause> interpreter =
                new ResolutionInterpreter<PrologCompiledClause, PrologCompiledClause>(engine);

            interpreter.interpreterLoop();
        }
        catch (Exception e)
        {
            /*log.log(Level.SEVERE, e.getMessage(), e);*/
            e.printStackTrace(new PrintStream(System.err));
            System.exit(-1);
        }
    }
public static void main(String[] args)
    {
        try
        {
            VariableAndFunctorInterner interner =
                new VariableAndFunctorInternerImpl("Prolog_Variable_Namespace", "Prolog_Functor_Namespace");
            PrologCompiler compiler = new PrologCompiler(interner);
            PrologResolver resolver = new PrologResolver(interner);
            Parser<Clause, Token> parser = new InteractiveParser(interner);

            PrologEngine engine = new PrologEngine(parser, interner, compiler, resolver);
            engine.reset();

            ResolutionInterpreter<PrologCompiledClause, PrologCompiledClause> interpreter =
                new ResolutionInterpreter<PrologCompiledClause, PrologCompiledClause>(engine);

            interpreter.interpreterLoop();
        }
        catch (Exception e)
        {
            /*log.log(Level.SEVERE, e.getMessage(), e);*/
            e.printStackTrace(new PrintStream(System.err));
            System.exit(-1);
        }
    }
public static void main ( String [ ] args ) { try { VariableAndFunctorInterner interner = new VariableAndFunctorInternerImpl ( "Prolog_Variable_Namespace" , "Prolog_Functor_Namespace" ) ; PrologCompiler compiler = new PrologCompiler ( interner ) ; PrologResolver resolver = new PrologResolver ( interner ) ; Parser < Clause , Token > parser = new InteractiveParser ( interner ) ; PrologEngine engine = new PrologEngine ( parser , interner , compiler , resolver ) ; engine . reset ( ) ; ResolutionInterpreter < PrologCompiledClause , PrologCompiledClause > interpreter = new ResolutionInterpreter < PrologCompiledClause , PrologCompiledClause > ( engine ) ; interpreter . interpreterLoop ( ) ; } catch ( Exception e ) { /*log.log(Level.SEVERE, e.getMessage(), e);*/ e . printStackTrace ( new PrintStream ( System . err ) ) ; System . exit ( - 1 ) ; } }
Creates the interpreter and launches its top-level run loop.

@param args The command line arguments.
Creates the interpreter and launches its top - level run loop .