![]() |
YAP 7.1.0
|
Prolog flags that can take different values in different threads and/or modules. More...
Prolog flags that can take different values in different threads and/or modules.
enum LocalFlags |
Enumerator | |
---|---|
allow_variable_name_as_functor | Allow constructs such as 'Functor( V )'. Functor is parsed as an atom The token Originally a SWI-Prolog flag |
autoload | set the system to look for undefined procedures |
break_level | read-only flag, that tells if Prolog is in an inner top-level |
call_counting | Predicates compiled with this flag set maintain a counter on the numbers of proceduree calls and of retries. These counters are decreasing counters, and they can be used as timers Three counters are available: calls: number of predicate calls since execution started or since system was reset; retries: number of retries for predicates called since execution started or since counters were reset; calls_and_retries: count both on predicate calls and retries These counters can be used to find out how many calls a certain goal takes to execute They can also be force the computation to stop |
compiling | Indicates YAP is running within the compiler. |
debug | whether debugging is If Value is bound to |
encoding | support for coding systens, YAP relies on UTF-8 internally |
file_errors |
|
language_mode | whether native mode or trying to emulate a different Prolog |
multiline_quoted_text | If true, quoted atoms, string, lists of codes and of chars may extend over several lines, without the need to escape the new-line characters. Otherwise, unquoted line breaks cause a syntax error Allow quoted atoms and strings to span multiple lines The default was for it to be true, except if in iso mode YAP-6.5 changed the default, in order to ensure compatibility, and to avoid long winded syntax bugs |
expand_file_name | obtain the absolute file name before loading a file |
stack_dump_on_error | error handler should generate a report on stack status |
stream_type_check | If The default is |
syntax_errors | Control action to be taken after syntax errors when executing read/1 ,
|
typein_module | If bound, set the current working or type-in module to the argument, which must be an atom. If unbound, unify the argument with the current type-in module, that is, with the module YAP will execute goals by default |
verbose | If If |
verbose_file_search | If If |
verbose_load | If If |
user_error | If the second argument is bound to a stream, set user_error to this stream. If the second argument is unbound, unify the argument with the current user_error stream By default, the user_error stream is set to a stream corresponding to the Unix ?- open( '/dev/null', append, Error,
[alias(mauri_tripa)] ).
Error = '$stream'(3) ? ;
no
?- set_prolog_flag(user_error, mauri_tripa).
close(mauri_tripa).
yes
?-
We execute three commands First, we open a stream in write mode and give it an alias, in this case |
user_input | If the second argument is bound to a stream, set user_input to this stream. If the second argument is unbound, unify the argument with the current user_input stream |
user_output | If the second argument is bound to a stream, set user_output to this stream. If the second argument is unbound, unify the argument with the current user_output stream |
numbervars_functor | This flag allow changing the |
allow_variable_name_as_functor | Allow constructs such as 'Functor( V )'. Functor is parsed as an atom The token Originally a SWI-Prolog flag |
autoload | set the system to look for undefined procedures |
break_level | read-only flag, that tells if Prolog is in an inner top-level |
call_counting | Predicates compiled with this flag set maintain a counter on the numbers of proceduree calls and of retries. These counters are decreasing counters, and they can be used as timers Three counters are available: calls: number of predicate calls since execution started or since system was reset; retries: number of retries for predicates called since execution started or since counters were reset; calls_and_retries: count both on predicate calls and retries These counters can be used to find out how many calls a certain goal takes to execute They can also be force the computation to stop |
compiling | Indicates YAP is running within the compiler. |
debug | whether debugging is If Value is bound to |
encoding | support for coding systens, YAP relies on UTF-8 internally |
file_errors |
|
language_mode | whether native mode or trying to emulate a different Prolog |
multiline_quoted_text | If true, quoted atoms, string, lists of codes and of chars may extend over several lines, without the need to escape the new-line characters. Otherwise, unquoted line breaks cause a syntax error Allow quoted atoms and strings to span multiple lines The default was for it to be true, except if in iso mode YAP-6.5 changed the default, in order to ensure compatibility, and to avoid long winded syntax bugs |
expand_file_name | obtain the absolute file name before loading a file |
stack_dump_on_error | error handler should generate a report on stack status |
stream_type_check | If The default is |
syntax_errors | Control action to be taken after syntax errors when executing read/1 ,
|
typein_module | If bound, set the current working or type-in module to the argument, which must be an atom. If unbound, unify the argument with the current type-in module, that is, with the module YAP will execute goals by default |
verbose | If If |
verbose_file_search | If If |
verbose_load | If If |
user_error | If the second argument is bound to a stream, set user_error to this stream. If the second argument is unbound, unify the argument with the current user_error stream By default, the user_error stream is set to a stream corresponding to the Unix ?- open( '/dev/null', append, Error,
[alias(mauri_tripa)] ).
Error = '$stream'(3) ? ;
no
?- set_prolog_flag(user_error, mauri_tripa).
close(mauri_tripa).
yes
?-
We execute three commands First, we open a stream in write mode and give it an alias, in this case |
user_input | If the second argument is bound to a stream, set user_input to this stream. If the second argument is unbound, unify the argument with the current user_input stream |
user_output | If the second argument is bound to a stream, set user_output to this stream. If the second argument is unbound, unify the argument with the current user_output stream |
numbervars_functor | This flag allow changing the |
Definition at line 38 of file YapLFlagInfo.h.
enum LocalFlags |
Enumerator | |
---|---|
allow_variable_name_as_functor | Allow constructs such as 'Functor( V )'. Functor is parsed as an atom The token Originally a SWI-Prolog flag |
autoload | set the system to look for undefined procedures |
break_level | read-only flag, that tells if Prolog is in an inner top-level |
call_counting | Predicates compiled with this flag set maintain a counter on the numbers of proceduree calls and of retries. These counters are decreasing counters, and they can be used as timers Three counters are available: calls: number of predicate calls since execution started or since system was reset; retries: number of retries for predicates called since execution started or since counters were reset; calls_and_retries: count both on predicate calls and retries These counters can be used to find out how many calls a certain goal takes to execute They can also be force the computation to stop |
compiling | Indicates YAP is running within the compiler. |
debug | whether debugging is If Value is bound to |
encoding | support for coding systens, YAP relies on UTF-8 internally |
file_errors |
|
language_mode | whether native mode or trying to emulate a different Prolog |
multiline_quoted_text | If true, quoted atoms, string, lists of codes and of chars may extend over several lines, without the need to escape the new-line characters. Otherwise, unquoted line breaks cause a syntax error Allow quoted atoms and strings to span multiple lines The default was for it to be true, except if in iso mode YAP-6.5 changed the default, in order to ensure compatibility, and to avoid long winded syntax bugs |
expand_file_name | obtain the absolute file name before loading a file |
stack_dump_on_error | error handler should generate a report on stack status |
stream_type_check | If The default is |
syntax_errors | Control action to be taken after syntax errors when executing read/1 ,
|
typein_module | If bound, set the current working or type-in module to the argument, which must be an atom. If unbound, unify the argument with the current type-in module, that is, with the module YAP will execute goals by default |
verbose | If If |
verbose_file_search | If If |
verbose_load | If If |
user_error | If the second argument is bound to a stream, set user_error to this stream. If the second argument is unbound, unify the argument with the current user_error stream By default, the user_error stream is set to a stream corresponding to the Unix ?- open( '/dev/null', append, Error,
[alias(mauri_tripa)] ).
Error = '$stream'(3) ? ;
no
?- set_prolog_flag(user_error, mauri_tripa).
close(mauri_tripa).
yes
?-
We execute three commands First, we open a stream in write mode and give it an alias, in this case |
user_input | If the second argument is bound to a stream, set user_input to this stream. If the second argument is unbound, unify the argument with the current user_input stream |
user_output | If the second argument is bound to a stream, set user_output to this stream. If the second argument is unbound, unify the argument with the current user_output stream |
numbervars_functor | This flag allow changing the |
allow_variable_name_as_functor | Allow constructs such as 'Functor( V )'. Functor is parsed as an atom The token Originally a SWI-Prolog flag |
autoload | set the system to look for undefined procedures |
break_level | read-only flag, that tells if Prolog is in an inner top-level |
call_counting | Predicates compiled with this flag set maintain a counter on the numbers of proceduree calls and of retries. These counters are decreasing counters, and they can be used as timers Three counters are available: calls: number of predicate calls since execution started or since system was reset; retries: number of retries for predicates called since execution started or since counters were reset; calls_and_retries: count both on predicate calls and retries These counters can be used to find out how many calls a certain goal takes to execute They can also be force the computation to stop |
compiling | Indicates YAP is running within the compiler. |
debug | whether debugging is If Value is bound to |
encoding | support for coding systens, YAP relies on UTF-8 internally |
file_errors |
|
language_mode | whether native mode or trying to emulate a different Prolog |
multiline_quoted_text | If true, quoted atoms, string, lists of codes and of chars may extend over several lines, without the need to escape the new-line characters. Otherwise, unquoted line breaks cause a syntax error Allow quoted atoms and strings to span multiple lines The default was for it to be true, except if in iso mode YAP-6.5 changed the default, in order to ensure compatibility, and to avoid long winded syntax bugs |
expand_file_name | obtain the absolute file name before loading a file |
stack_dump_on_error | error handler should generate a report on stack status |
stream_type_check | If The default is |
syntax_errors | Control action to be taken after syntax errors when executing read/1 ,
|
typein_module | If bound, set the current working or type-in module to the argument, which must be an atom. If unbound, unify the argument with the current type-in module, that is, with the module YAP will execute goals by default |
verbose | If If |
verbose_file_search | If If |
verbose_load | If If |
user_error | If the second argument is bound to a stream, set user_error to this stream. If the second argument is unbound, unify the argument with the current user_error stream By default, the user_error stream is set to a stream corresponding to the Unix ?- open( '/dev/null', append, Error,
[alias(mauri_tripa)] ).
Error = '$stream'(3) ? ;
no
?- set_prolog_flag(user_error, mauri_tripa).
close(mauri_tripa).
yes
?-
We execute three commands First, we open a stream in write mode and give it an alias, in this case |
user_input | If the second argument is bound to a stream, set user_input to this stream. If the second argument is unbound, unify the argument with the current user_input stream |
user_output | If the second argument is bound to a stream, set user_output to this stream. If the second argument is unbound, unify the argument with the current user_output stream |
numbervars_functor | This flag allow changing the |
Definition at line 38 of file YapLFlagInfo.h.