mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 2
Branches: main
Add a mechanism for resetting all the tables implementing loopcheck, memo
and minimal_model pragmas in a given module. This mechanism is intended for
use only by implementors, to wit, Ralph's meaurements of packrat parsing.
compiler/options.m:
doc/user_guide.texi:
Add a new option, --allow-table-reset, that causes the compiler to
generate a C function for doing the reset in LLDS grades.
compiler/llds_out.m:
If the option is set, generate the reset function. The only time it
is safe to call the reset function is when no tabled predicate is
active.
tests/debugger/fib.{m,exp,inp}:
New test case (a modified version of tests/tabling/fib.m) to see
if the option works.
tests/debugger/Mmakefile:
tests/debugger/Mercury.options:
Enable the new test case.
10 lines
88 B
Plaintext
10 lines
88 B
Plaintext
echo on
|
|
context none
|
|
register --quiet
|
|
step
|
|
finish
|
|
table mfib
|
|
step 2
|
|
table mfib
|
|
continue
|