-
Notifications
You must be signed in to change notification settings - Fork 6
switch stop pattern
Norbert Preining edited this page Oct 6, 2017
·
2 revisions
In step mode, this command causes reductions to stop when the reductants get to containing subterms that match the given term. If no term is given, this restriction is lifted.
Related: step switch
CafeOBJ> open NAT .
%NAT> set step on .
%NAT> set stop pattern s 2 .
%NAT> red s s s s s s s s s 0 .
>> target: (s 0)
STEP[1]? c
>> term matches to stop pattern: (s 2)
<< will stop rewriting
>> stop because matches stop pattern.
>> target: (s 2)
STEP[3]? c
(9):NzNat
CafeOBJ Reference Manual (c) 2015-2018 CafeOBJ Development Team