swipl -f
file
or simply using swipl
. In the first case we search the
file both directly and over the alias user_app_config
. In the
latter case we only use the alias.:- initialization(Goal, program).
. Stop
with an exception if a goal fails or raises an exception.argv
, extracting the leading script files.
This is called after the C based parser removed Prolog options such
as -q
, -f none
, etc. These options are available through
'$cmd_option_val'/2.
Our task is to update the Prolog flag argv
and return a list of
the files to be loaded. The rules are:
--
all remaining options must go to argv
search(name)
as Prolog file,
make this the content of Files and pass the remainder as
options to argv
.console_menu
,
which is set by swipl-win[.exe].--pldoc[=port]
is given, load the PlDoc system.default
and prolog
both
start the interactive toplevel, where prolog
implies the user gave
-t prolog
.
forall(prolog:repl_loop_hook(BeginEnd, BreakLevel), true)
query_loop()
. This ensures that unhandled
exceptions are really unhandled (in Prolog).thread_signal(main, gdebug)
groundness
gives the classical behaviour,
determinism
is considered more adequate and informative.
Succeeds if the user accepts the answer and fails otherwise.
_[A-Z][0-9]*
to all variables in Term, that do not
have a name due to Bindings. Singleton variables in Term are named
_. The behavior depends on these Prolog flags:
true
, else name_vars/2 is a no-op.
Variables are named by unifying them to '$VAR'(Name)
toplevel_residue_vars
is set to project
.answer_write_options
value according to the user
command.The following predicates are exported, but not or incorrectly documented.