make it so that we always use the fixed op for |. Needs improement.
This commit is contained in:
parent
e86a995dd2
commit
02108d2017
@ -675,9 +675,8 @@ ParseTerm(int prio, JMPBUFF *FailBuff)
|
|||||||
}
|
}
|
||||||
curprio = 1000;
|
curprio = 1000;
|
||||||
continue;
|
continue;
|
||||||
} else if (Unsigned(Yap_tokptr->TokInfo) == '|' &&
|
} else if (Unsigned(Yap_tokptr->TokInfo) == '|' &&
|
||||||
IsInfixOp(AtomVBar, &opprio, &oplprio, &oprprio)
|
prio >= 1105 && curprio <= 1104) {
|
||||||
&& opprio <= prio && oplprio >= curprio) {
|
|
||||||
Volatile Term args[2];
|
Volatile Term args[2];
|
||||||
NextToken;
|
NextToken;
|
||||||
args[0] = t;
|
args[0] = t;
|
||||||
@ -688,7 +687,7 @@ ParseTerm(int prio, JMPBUFF *FailBuff)
|
|||||||
Yap_ErrorMessage = "Stack Overflow";
|
Yap_ErrorMessage = "Stack Overflow";
|
||||||
FAIL;
|
FAIL;
|
||||||
}
|
}
|
||||||
curprio = opprio;
|
curprio = 1105;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user