| 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 2 | % |
|---|
| 3 | % Logtalk - Object oriented extension to Prolog |
|---|
| 4 | % Release 2.9.0 |
|---|
| 5 | % |
|---|
| 6 | % configuration file for Trinc Prolog R3 |
|---|
| 7 | % |
|---|
| 8 | % last updated: August 24, 2000 |
|---|
| 9 | % |
|---|
| 10 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | abort :- |
|---|
| 14 | throw(error(execution_aborted)). |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 19 | % |
|---|
| 20 | % ISO Prolog Standard predicates that we must define because they are |
|---|
| 21 | % not built-in |
|---|
| 22 | % |
|---|
| 23 | % add a clause for lgt_iso_predicate/1 declaring each ISO predicate that |
|---|
| 24 | % we must define; there must be at least one clause for this predicate |
|---|
| 25 | % whose call should fail if we don't define any ISO predicates |
|---|
| 26 | % |
|---|
| 27 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | % lgt_iso_predicate(?callable). |
|---|
| 31 | |
|---|
| 32 | lgt_iso_predicate(_) :- |
|---|
| 33 | fail. |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 38 | % |
|---|
| 39 | % predicate properties |
|---|
| 40 | % |
|---|
| 41 | % this predicate must return at least static, dynamic and built_in |
|---|
| 42 | % properties for an existing predicate |
|---|
| 43 | % |
|---|
| 44 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | % lgt_predicate_property(+callable, ?predicate_property) |
|---|
| 48 | |
|---|
| 49 | lgt_predicate_property(Pred, built_in) :- |
|---|
| 50 | iso_bip(Pred). |
|---|
| 51 | |
|---|
| 52 | lgt_predicate_property(Pred, dynamic) :- |
|---|
| 53 | functor(Pred, Functor, Arity), |
|---|
| 54 | functor(Clause, Functor, Arity), |
|---|
| 55 | catch((asserta(Clause), retract(Clause), !), _, fail). |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 60 | % |
|---|
| 61 | % metapredicates |
|---|
| 62 | % |
|---|
| 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | % forall(+callable, +callble) |
|---|
| 67 | |
|---|
| 68 | forall(Generate, Test) :- |
|---|
| 69 | \+ call((Generate, \+ call(Test))). |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | % retractall(+callable) |
|---|
| 73 | |
|---|
| 74 | retractall(Head) :- |
|---|
| 75 | retract((Head :- _)), |
|---|
| 76 | fail. |
|---|
| 77 | |
|---|
| 78 | retractall(_). |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | % lgt_call/2-8 |
|---|
| 82 | % |
|---|
| 83 | % if your compiler provides call/1-8 as built-in |
|---|
| 84 | % predicates rewrite these definitions using call(...). |
|---|
| 85 | |
|---|
| 86 | lgt_call(F, A) :- |
|---|
| 87 | Call =.. [F, A], |
|---|
| 88 | call(Call). |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | lgt_call(F, A1, A2) :- |
|---|
| 92 | Call =.. [F, A1, A2], |
|---|
| 93 | call(Call). |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | lgt_call(F, A1, A2, A3) :- |
|---|
| 97 | Call =.. [F, A1, A2, A3], |
|---|
| 98 | call(Call). |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | lgt_call(F, A1, A2, A3, A4) :- |
|---|
| 102 | Call =.. [F, A1, A2, A3, A4], |
|---|
| 103 | call(Call). |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | lgt_call(F, A1, A2, A3, A4, A5) :- |
|---|
| 107 | Call =.. [F, A1, A2, A3, A4, A5], |
|---|
| 108 | call(Call). |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | lgt_call(F, A1, A2, A3, A4, A5, A6) :- |
|---|
| 112 | Call =.. [F, A1, A2, A3, A4, A5, A6], |
|---|
| 113 | call(Call). |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | lgt_call(F, A1, A2, A3, A4, A5, A6, A7) :- |
|---|
| 117 | Call =.. [F, A1, A2, A3, A4, A5, A6, A7], |
|---|
| 118 | call(Call). |
|---|
| 119 | |
|---|
| 120 | |
|---|
| 121 | % lgt_once/2-8 |
|---|
| 122 | % |
|---|
| 123 | % if your compiler provides call/1-8 as built-in |
|---|
| 124 | % predicates rewrite these definitions using call(...), !. |
|---|
| 125 | |
|---|
| 126 | lgt_once(F, A) :- |
|---|
| 127 | Call =.. [F, A], |
|---|
| 128 | once(Call). |
|---|
| 129 | |
|---|
| 130 | |
|---|
| 131 | lgt_once(F, A1, A2) :- |
|---|
| 132 | Call =.. [F, A1, A2], |
|---|
| 133 | once(Call). |
|---|
| 134 | |
|---|
| 135 | |
|---|
| 136 | lgt_once(F, A1, A2, A3) :- |
|---|
| 137 | Call =.. [F, A1, A2, A3], |
|---|
| 138 | once(Call). |
|---|
| 139 | |
|---|
| 140 | |
|---|
| 141 | lgt_once(F, A1, A2, A3, A4) :- |
|---|
| 142 | Call =.. [F, A1, A2, A3, A4], |
|---|
| 143 | once(Call). |
|---|
| 144 | |
|---|
| 145 | |
|---|
| 146 | lgt_once(F, A1, A2, A3, A4, A5) :- |
|---|
| 147 | Call =.. [F, A1, A2, A3, A4, A5], |
|---|
| 148 | once(Call). |
|---|
| 149 | |
|---|
| 150 | |
|---|
| 151 | lgt_once(F, A1, A2, A3, A4, A5, A6) :- |
|---|
| 152 | Call =.. [F, A1, A2, A3, A4, A5, A6], |
|---|
| 153 | once(Call). |
|---|
| 154 | |
|---|
| 155 | |
|---|
| 156 | lgt_once(F, A1, A2, A3, A4, A5, A6, A7) :- |
|---|
| 157 | Call =.. [F, A1, A2, A3, A4, A5, A6, A7], |
|---|
| 158 | once(Call). |
|---|
| 159 | |
|---|
| 160 | |
|---|
| 161 | |
|---|
| 162 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 163 | % |
|---|
| 164 | % file extension predicates |
|---|
| 165 | % |
|---|
| 166 | % these extensions are used by Logtalk load/compile predicates |
|---|
| 167 | % |
|---|
| 168 | % you may want to change the extension for Prolog files to match |
|---|
| 169 | % the one expected by your Prolog compiler |
|---|
| 170 | % |
|---|
| 171 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 172 | |
|---|
| 173 | |
|---|
| 174 | % lgt_file_extension(?atom, ?atom) |
|---|
| 175 | |
|---|
| 176 | lgt_file_extension(logtalk, '.lgt'). |
|---|
| 177 | lgt_file_extension(prolog, '.pl'). |
|---|
| 178 | lgt_file_extension(xml, '.xml'). |
|---|
| 179 | |
|---|
| 180 | |
|---|
| 181 | |
|---|
| 182 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 183 | % |
|---|
| 184 | % default compiler options |
|---|
| 185 | % |
|---|
| 186 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 187 | |
|---|
| 188 | |
|---|
| 189 | % lgt_default_compiler_option(?atom, ?atom) |
|---|
| 190 | % |
|---|
| 191 | % default values for all compiler options |
|---|
| 192 | |
|---|
| 193 | lgt_default_compiler_option(iso_initialization_dir, true). |
|---|
| 194 | |
|---|
| 195 | lgt_default_compiler_option(xml, on). |
|---|
| 196 | lgt_default_compiler_option(xsl, 'lgtxml.xsl'). |
|---|
| 197 | |
|---|
| 198 | lgt_default_compiler_option(unknown, warning). |
|---|
| 199 | lgt_default_compiler_option(misspelt, warning). |
|---|
| 200 | lgt_default_compiler_option(singletons, warning). |
|---|
| 201 | lgt_default_compiler_option(lgtredef, warning). |
|---|
| 202 | lgt_default_compiler_option(plredef, silent). |
|---|
| 203 | |
|---|
| 204 | lgt_default_compiler_option(report, on). |
|---|
| 205 | |
|---|
| 206 | |
|---|
| 207 | |
|---|
| 208 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 209 | % |
|---|
| 210 | % list predicates |
|---|
| 211 | % |
|---|
| 212 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 213 | |
|---|
| 214 | |
|---|
| 215 | lgt_append([], List, List). |
|---|
| 216 | lgt_append([Head| Tail], List, [Head| Tail2]) :- |
|---|
| 217 | lgt_append(Tail, List, Tail2). |
|---|
| 218 | |
|---|
| 219 | |
|---|
| 220 | lgt_member(Head, [Head| _]). |
|---|
| 221 | lgt_member(Head, [_| Tail]) :- |
|---|
| 222 | lgt_member(Head, Tail). |
|---|
| 223 | |
|---|
| 224 | |
|---|
| 225 | lgt_member_var(V, [H| _]) :- |
|---|
| 226 | V == H. |
|---|
| 227 | lgt_member_var(V, [_| T]) :- |
|---|
| 228 | lgt_member_var(V, T). |
|---|
| 229 | |
|---|
| 230 | |
|---|
| 231 | lgt_proper_list([]). |
|---|
| 232 | lgt_proper_list([_| List]) :- |
|---|
| 233 | lgt_proper_list(List). |
|---|
| 234 | |
|---|
| 235 | |
|---|
| 236 | |
|---|
| 237 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 238 | % |
|---|
| 239 | % file predicates |
|---|
| 240 | % |
|---|
| 241 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 242 | |
|---|
| 243 | |
|---|
| 244 | % lgt_file_exists(+atom) |
|---|
| 245 | % |
|---|
| 246 | % see if a file exist in the current directory |
|---|
| 247 | |
|---|
| 248 | lgt_file_exists(File) :- |
|---|
| 249 | catch(open(File, read, Stream), _, fail), |
|---|
| 250 | close(Stream). |
|---|
| 251 | |
|---|
| 252 | |
|---|
| 253 | % lgt_load_prolog_code(+atom) |
|---|
| 254 | % |
|---|
| 255 | % compile and load a Prolog file |
|---|
| 256 | |
|---|
| 257 | lgt_load_prolog_code(File) :- |
|---|
| 258 | consult(File). |
|---|
| 259 | |
|---|
| 260 | |
|---|
| 261 | |
|---|
| 262 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 263 | % |
|---|
| 264 | % sorting predicate |
|---|
| 265 | % |
|---|
| 266 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 267 | |
|---|
| 268 | |
|---|
| 269 | % lgt_keysort(+list, -list) |
|---|
| 270 | |
|---|
| 271 | lgt_keysort(List, Sorted) :- |
|---|
| 272 | throw(error(not_yet_implemented, keysort/2)). |
|---|
| 273 | |
|---|
| 274 | |
|---|
| 275 | % lgt_sort(+list, -list) |
|---|
| 276 | |
|---|
| 277 | lgt_sort(List, Sorted) :- |
|---|
| 278 | throw(error(not_yet_implemented, sort/2)). |
|---|
| 279 | |
|---|
| 280 | |
|---|
| 281 | |
|---|
| 282 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 283 | % |
|---|
| 284 | % time and date predicates |
|---|
| 285 | % |
|---|
| 286 | % if your Prolog compiler does not provide access to the operating system |
|---|
| 287 | % time and date just write dummy definitions |
|---|
| 288 | % |
|---|
| 289 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 290 | |
|---|
| 291 | |
|---|
| 292 | % lgt_current_date(?Year, ?Month, ?Day) |
|---|
| 293 | |
|---|
| 294 | lgt_current_date(1999, 12, 3). |
|---|
| 295 | |
|---|
| 296 | |
|---|
| 297 | % lgt_current_time(?Hours, ?Mins, ?Secs) |
|---|
| 298 | |
|---|
| 299 | lgt_current_time(0, 0, 0). |
|---|
| 300 | |
|---|
| 301 | |
|---|
| 302 | |
|---|
| 303 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 304 | % |
|---|
| 305 | % timing predicate |
|---|
| 306 | % |
|---|
| 307 | % if your Prolog compiler does not provide access to a timing predicate |
|---|
| 308 | % just write dummy definition |
|---|
| 309 | % |
|---|
| 310 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 311 | |
|---|
| 312 | |
|---|
| 313 | % lgt_cpu_time(-Seconds) |
|---|
| 314 | |
|---|
| 315 | lgt_cpu_time(Seconds) :- |
|---|
| 316 | throw(error(not_yet_implemented, cpu_time/1)). |
|---|
| 317 | |
|---|
| 318 | |
|---|
| 319 | |
|---|
| 320 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 321 | % |
|---|
| 322 | % comparison predicate |
|---|
| 323 | % |
|---|
| 324 | % the usual compare/3 definition |
|---|
| 325 | % |
|---|
| 326 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 327 | |
|---|
| 328 | |
|---|
| 329 | % compare(?atom, @term, @term) |
|---|
| 330 | |
|---|
| 331 | compare(<, X, Y) :- |
|---|
| 332 | X @< Y, !. |
|---|
| 333 | |
|---|
| 334 | compare(=, X, Y) :- |
|---|
| 335 | X == Y, !. |
|---|
| 336 | |
|---|
| 337 | compare(>, X, Y) :- |
|---|
| 338 | X @> Y. |
|---|
| 339 | |
|---|
| 340 | |
|---|
| 341 | |
|---|
| 342 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 343 | % |
|---|
| 344 | % end! |
|---|
| 345 | % |
|---|
| 346 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|---|
| 347 | |
|---|
| 348 | |
|---|
| 349 | |
|---|
| 350 | iso_bip(_ = _). |
|---|
| 351 | iso_bip(_ \= _). |
|---|
| 352 | iso_bip(unify_with_occurs_check(_, _)). |
|---|
| 353 | |
|---|
| 354 | iso_bip(var(_)). |
|---|
| 355 | iso_bip(atom(_)). |
|---|
| 356 | iso_bip(integer(_)). |
|---|
| 357 | iso_bip(float(_)). |
|---|
| 358 | iso_bip(atomic(_)). |
|---|
| 359 | iso_bip(compound(_)). |
|---|
| 360 | iso_bip(nonvar(_)). |
|---|
| 361 | iso_bip(number(_)). |
|---|
| 362 | |
|---|
| 363 | iso_bip(_ @=< _). |
|---|
| 364 | iso_bip(_ @< _). |
|---|
| 365 | iso_bip(_ @>= _). |
|---|
| 366 | iso_bip(_ @> _). |
|---|
| 367 | iso_bip(_ == _). |
|---|
| 368 | iso_bip(_ \== _). |
|---|
| 369 | |
|---|
| 370 | iso_bip(functor(_, _, _)). |
|---|
| 371 | iso_bip(arg(_, _, _)). |
|---|
| 372 | iso_bip(copy_term(_, _)). |
|---|
| 373 | iso_bip(_ =.. _). |
|---|
| 374 | |
|---|
| 375 | iso_bip(_ is _). |
|---|
| 376 | |
|---|
| 377 | iso_bip(_ =:= _). |
|---|
| 378 | iso_bip(_ =\= _). |
|---|
| 379 | iso_bip(_ < _). |
|---|
| 380 | iso_bip(_ =< _). |
|---|
| 381 | iso_bip(_ > _). |
|---|
| 382 | iso_bip(_ >= _). |
|---|
| 383 | |
|---|
| 384 | iso_bip(clause(_, _)). |
|---|
| 385 | iso_bip(current_predicate(_)). |
|---|
| 386 | |
|---|
| 387 | iso_bip(abolish(_)). |
|---|
| 388 | iso_bip(asserta(_)). |
|---|
| 389 | iso_bip(assertz(_)). |
|---|
| 390 | iso_bip(retract(_)). |
|---|
| 391 | |
|---|
| 392 | iso_bip(bagof(_, _, _)). |
|---|
| 393 | iso_bip(findall(_, _, _)). |
|---|
| 394 | iso_bip(setof(_, _, _)). |
|---|
| 395 | |
|---|
| 396 | iso_bip(current_input(_)). |
|---|
| 397 | iso_bip(current_output(_)). |
|---|
| 398 | iso_bip(set_input(_)). |
|---|
| 399 | iso_bip(set_output(_)). |
|---|
| 400 | iso_bip(open(_, _, _)). |
|---|
| 401 | iso_bip(open(_, _, _, _)). |
|---|
| 402 | iso_bip(close(_)). |
|---|
| 403 | iso_bip(close(_, _)). |
|---|
| 404 | iso_bip(flush_output). |
|---|
| 405 | iso_bip(flush_output(_)). |
|---|
| 406 | iso_bip(stream_property(_, _)). |
|---|
| 407 | iso_bip(set_stream_position(_, _)). |
|---|
| 408 | iso_bip(at_end_of_stream). |
|---|
| 409 | iso_bip(at_end_of_stream(_)). |
|---|
| 410 | |
|---|
| 411 | iso_bip(get_char(_)). |
|---|
| 412 | iso_bip(get_char(_, _)). |
|---|
| 413 | iso_bip(get_code(_)). |
|---|
| 414 | iso_bip(get_code(_, _)). |
|---|
| 415 | iso_bip(peek_char(_)). |
|---|
| 416 | iso_bip(peek_char(_, _)). |
|---|
| 417 | iso_bip(peek_code(_)). |
|---|
| 418 | iso_bip(peek_code(_, _)). |
|---|
| 419 | iso_bip(put_char(_)). |
|---|
| 420 | iso_bip(put_char(_, _)). |
|---|
| 421 | iso_bip(put_code(_)). |
|---|
| 422 | iso_bip(put_code(_, _)). |
|---|
| 423 | iso_bip(nl). |
|---|
| 424 | iso_bip(nl(_)). |
|---|
| 425 | |
|---|
| 426 | iso_bip(get_byte(_)). |
|---|
| 427 | iso_bip(get_byte(_, _)). |
|---|
| 428 | iso_bip(peek_byte(_)). |
|---|
| 429 | iso_bip(peek_byte(_, _)). |
|---|
| 430 | iso_bip(put_byte(_)). |
|---|
| 431 | iso_bip(put_byte(_, _)). |
|---|
| 432 | |
|---|
| 433 | iso_bip(read_term(_, _)). |
|---|
| 434 | iso_bip(read_term(_, _, _)). |
|---|
| 435 | iso_bip(read(_)). |
|---|
| 436 | iso_bip(read(_, _)). |
|---|
| 437 | iso_bip(write_term(_, _)). |
|---|
| 438 | iso_bip(write_term(_, _, _)). |
|---|
| 439 | iso_bip(write(_)). |
|---|
| 440 | iso_bip(write(_, _)). |
|---|
| 441 | iso_bip(writeq(_)). |
|---|
| 442 | iso_bip(writeq(_, _)). |
|---|
| 443 | iso_bip(write_canonical(_)). |
|---|
| 444 | iso_bip(write_canonical(_, _)). |
|---|
| 445 | iso_bip(op(_, _, _)). |
|---|
| 446 | iso_bip(current_op(_, _, _)). |
|---|
| 447 | iso_bip(char_conversion(_, _)). |
|---|
| 448 | iso_bip(current_char_conversion(_, _)). |
|---|
| 449 | |
|---|
| 450 | iso_bip(\+ _). |
|---|
| 451 | iso_bip(once(_)). |
|---|
| 452 | iso_bip(repeat). |
|---|
| 453 | |
|---|
| 454 | iso_bip(atom_length(_, _)). |
|---|
| 455 | iso_bip(atom_concat(_, _, _)). |
|---|
| 456 | iso_bip(sub_atom(_, _, _, _, _)). |
|---|
| 457 | iso_bip(atom_chars(_, _)). |
|---|
| 458 | iso_bip(atom_codes(_, _)). |
|---|
| 459 | iso_bip(char_code(_, _)). |
|---|
| 460 | iso_bip(number_chars(_, _)). |
|---|
| 461 | iso_bip(number_codes(_, _)). |
|---|
| 462 | |
|---|
| 463 | iso_bip(current_prolog_flag(_, _)). |
|---|
| 464 | iso_bip(set_prolog_flag(_, _)). |
|---|
| 465 | iso_bip(halt). |
|---|
| 466 | iso_bip(halt(_)). |
|---|
| 467 | |
|---|
| 468 | iso_bip(true). |
|---|
| 469 | iso_bip(fail). |
|---|
| 470 | iso_bip(call(_)). |
|---|
| 471 | iso_bip(!). |
|---|
| 472 | iso_bip(catch(_,_,_)). |
|---|
| 473 | iso_bip(throw(_)). |
|---|