make it so that we always use the fixed op for |. Needs improement.

This commit is contained in:
Vitor Santos Costa 2010-01-12 10:06:10 +00:00
parent e86a995dd2
commit 02108d2017

View File

@ -675,9 +675,8 @@ ParseTerm(int prio, JMPBUFF *FailBuff)
}
curprio = 1000;
continue;
} else if (Unsigned(Yap_tokptr->TokInfo) == '|' &&
IsInfixOp(AtomVBar, &opprio, &oplprio, &oprprio)
&& opprio <= prio && oplprio >= curprio) {
} else if (Unsigned(Yap_tokptr->TokInfo) == '|' &&
prio >= 1105 && curprio <= 1104) {
Volatile Term args[2];
NextToken;
args[0] = t;
@ -688,7 +687,7 @@ ParseTerm(int prio, JMPBUFF *FailBuff)
Yap_ErrorMessage = "Stack Overflow";
FAIL;
}
curprio = opprio;
curprio = 1105;
continue;
}
}