mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
Replace __ with . as the module qualifier symbol. Replace references to io.state with just io. Replace DCGs with state variables. Replace (C->T;E) syntax for if-then-elses with (if C then T else E) syntax. Replace if-then-elses with switches when possible and where this does not affect what is being tested. Replace separate pred and mode declarations with predmode declarations. Put predicate and function declarations just before the definition of the predicate or function. Delete unneeded module qualifications on predicate and function declarations and definitions. Update .exp files (and if needed, .inp files) for the line number changes that result from the above. For tests that have more than one .exp file and where one of those files is affected by the above, add a section to the source file header that says which .exp file is for what grade, with XXXs for the (as yet) unknown parts.
122 lines
1.2 KiB
Plaintext
122 lines
1.2 KiB
Plaintext
echo on
|
|
register --quiet
|
|
retry 1
|
|
print *
|
|
b data
|
|
continue
|
|
delete 0
|
|
print *
|
|
|
|
print *
|
|
|
|
print *
|
|
|
|
print *
|
|
print_optionals on
|
|
print *
|
|
print_optionals off
|
|
print *
|
|
|
|
print *
|
|
|
|
print *
|
|
|
|
print *
|
|
level 1
|
|
level -d 1
|
|
context nextline
|
|
level 1
|
|
level -d 1
|
|
context prevline
|
|
level 1
|
|
level -d 1
|
|
print *
|
|
up 1
|
|
vars
|
|
print *
|
|
|
|
print HeadVar__1
|
|
print HeadVar__2
|
|
print HeadVar__3
|
|
hold HeadVar__2^1 x
|
|
hold HeadVar__2^2 y
|
|
hold HeadVar__2 y
|
|
hold HeadVar__2 z
|
|
held_vars
|
|
print $x
|
|
print $y
|
|
print $z
|
|
diff $x $y
|
|
diff $y $z
|
|
diff -m 2 $y $z
|
|
diff -s 2 -m 2 $y $z
|
|
diff -s 4 -m 2 $y $z
|
|
diff $y $z^2
|
|
|
|
print *
|
|
|
|
print *
|
|
|
|
print *
|
|
|
|
print *
|
|
|
|
print *
|
|
|
|
goto -a 21
|
|
stack
|
|
stack -d
|
|
stack 3
|
|
stack -d 3
|
|
print *
|
|
|
|
retry
|
|
print *
|
|
finish -a
|
|
register --quiet
|
|
break print_list
|
|
break qdelete
|
|
break_print HeadVar__2^2
|
|
continue -a
|
|
break info
|
|
enable *
|
|
step -aS 5
|
|
disable 1
|
|
retry 4
|
|
break 46
|
|
continue -n
|
|
continue -n
|
|
continue -n
|
|
continue -n
|
|
continue -n
|
|
continue -n
|
|
return
|
|
continue -n
|
|
continue -n
|
|
forward
|
|
continue -n
|
|
continue -n
|
|
delete *
|
|
break main SWTC
|
|
break main EXIT
|
|
continue -n
|
|
retry
|
|
yes
|
|
delete 0
|
|
break safe
|
|
condition HeadVar__1 = [
|
|
condition HeadVar__1 = [a, c
|
|
condition HeadVar__1 = [f(a, b]
|
|
condition HeadVar__1 = [1,2, 5, 4, 3 ]
|
|
continue
|
|
print
|
|
retry 2
|
|
yes
|
|
disable 0
|
|
break nodiag SWTC
|
|
1
|
|
continue
|
|
print *
|
|
delete *
|
|
continue -n -S
|