diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-23 00:50:18 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-23 00:50:18 +0000 |
commit | c85de58a2047c4858825d03977e490db6168fbe3 (patch) | |
tree | 8856e5d3e8ac67ca9404bd6b0541d3652f37973d /eval.c | |
parent | 43f65cbe02b3a2512c3a797862196d693b3a9f11 (diff) |
Simplify parsing a bit, and make sure the prolog loader calls read_term with the correct module to pick up the correct operators
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -66,6 +66,17 @@ evalquery(Term *query) name = prettyprint(goal, 0, 0, 0, nil); arity = 0; } + print("Didn't find predicate %S in module %S\n", prettyprint(goal, 0, 0, 0, nil), module->name); + Predicate *p; + for(p = module->predicates; p != nil; p = p->next) + print("Available in %S: %S/%d\n", module->name, p->name, p->arity); + Module *sysmod; + if(systemmoduleloaded) + sysmod = getmodule(L"system"); + else + sysmod = getmodule(L"user"); + for(p = sysmod->predicates; p != nil; p = p->next) + print("Available in %S: %S/%d\n", sysmod->name, p->name, p->arity); switch(flagunknown){ case UnknownError: procedure = mkatom(name); |