Add options to PrologMain to emulate usage in Gerrit

Disable features by default like IO and STATISTICS but
allow them to be enabled with flags on the command line.

Allow the caller to parse files outside of Prolog similar
to Gerrit by passing in `-f foo.pl` flags to consult from
a stream that was opened outside of Prolog.

Cap the database size at 256 by default, similar to Gerrit
capping the user database. Allow this to be raised using a
flag on the command line.

By default launch into the repl similar to SWI-Prolog.

Change-Id: Icaf1ef7ff3bd2f19a7ded4735e1fc945ef7bbbb6
1 file changed
tree: 2049bf1c2eec95cdb35336a94d31e594efa20382
  1. .settings/
  2. bin/
  3. examples/
  4. java/
  5. src/
  6. .buckconfig
  7. .classpath
  8. .gitignore
  9. .gitmodules
  10. .project
  11. bootstrap.defs
  12. BUCK
  13. fake_pom_deploy.xml
  14. fake_pom_install.xml
  15. LICENSE
  16. LICENSE.EPL
  17. LICENSE.GPL
  18. README.md
README.md

Prolog Cafe

A fork of Mutsunori BANBARA‘s PrologCafe to support Gerrit Code Review’s customizable project rules.

Build

To bootstrap Buck and SWI-Prolog >= 6.6.4 must be installed and then build the runtime and compiler with:

buck build all

To package for Maven into the local ~/.m2/repository directory:

buck build install

To publish to the gerrit-maven storage bucket:

buck build deploy