| Did you know ... | Search Documentation: |
| toplevel.pl |
version is det
version(+Message) is det
load_init_file(+ScriptMode) is det[private]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.
loaded_init_file(?Base, ?AbsFile)[private]
initialization :Goal
initialize:- initialization(Goal, program).. Stop
with an exception if a goal fails or raises an exception.
thread_initialization :Goal
$thread_initstart_thread() from pl-thread.c before the thread's goal.
$set_file_search_paths is det[private]
argv_prolog_files(-Files, -ScriptMode) is det[private]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 argvsearch(name) as Prolog file,
make this the content of Files and pass the remainder as
options to argv.
win_associated_files(+Files)[private]
start_pldoc[private]--pldoc[=port] is given, load the PlDoc system.
load_associated_files(+Files)[private]
$initialise is semidet
main_thread_init[private]epilog is set and
xpce is around, create an epilog window and complete the user part
of the initialization in the epilog thread.
user_thread_init[private]
setup_theme[private]
apply_defines[private]
define_options(+Flag, -Options)[private]
init_optimise[private]-O is effective.
run_init_goals(+Goals) is det[private]
run_program_init is det[private]
init_debug_flags is det[private]
setup_backtrace[private]
setup_colors is det[private]
setup_history[private]
setup_readline[private]
load_setup_file(+File) is semidet[private]
setup_app is det[private]
running_as_app is semidet[private]
app_settings(-Settings:dict) is det[private]
app_save_settings(+Settings:dict) is det[private]
$toplevel
$runtoplevel[private]default and prolog both
start the interactive toplevel, where prolog implies the user gave
-t prolog.
$compile
$config
prolog:repl_loop_hook(+BeginEnd, +BreakLevel) is nondet[multifile]forall(prolog:repl_loop_hook(BeginEnd, BreakLevel), true)
prolog
$query_loopquery_loop(). This ensures that unhandled
exceptions are really unhandled (in Prolog).
read_query(+Prompt, -Goal, -Bindings) is det[private]
read_query_line(+Input, -Query:atom) is det[private]user and read the next query. This supports injecting
goals in some GNU-Emacs modes.
read_term_as_atom(+Input, -Line)[private]
skip_to_nl(+Input) is det[private]
save_debug_after_read[private]thread_signal(main, gdebug)
$execute_query(Goal, Bindings, -Truth) is det
write_bindings(+Bindings, +ResidueVars, +Delays, +DetOrChp) is semidet[private]groundness gives the classical behaviour,
determinism is considered more adequate and informative.
Succeeds if the user accepts the answer and fails otherwise.
name_vars(+OrgBinding, +Bindings, +Term) is det[private]_[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/3 is a no-op.
Variables are named by unifying them to '$VAR'(Name)
name_var(+Reserved, -Name, +N0, -N) is det[private]
bindings_var_names(+OrgBindings, +TransBindings, -VarNames) is det[private]
bindings_var_names_(+Bindings)// is det[private]
answer_flags_imply_numbervars[private]
residual_goals(:NonTerminal)
prolog:residual_goals// is det
prolog:translate_bindings(+Bindings0, -Bindings, +ResidueVars, +ResidualGoals, -Residuals) is det
project_constraints(+Bindings, +ResidueVars) is det[private]toplevel_residue_vars is set to project.
join_same_bindings(Bindings0, Bindings)[private]
omit_qualifiers(+QGoals, +TypeIn, -Goals) is det[private]
bind_vars(+BindingsIn, -Bindings)[private]
bind_one_skel_vars(+Subst, +Bindings, +VarName, +N0, -N)[private]
factorize_bindings(+Bindings0, -Factorized)[private]
filter_bindings(+Bindings0, -Bindings)[private]
get_respons(-Action, +Chp)[private]
print_predicate(+Action, +Options0, -Options) is semidet[private]answer_write_options value according to the user
command.
print_last_chpoint(+Chp) is det[private]