Example #1
0
 protected void assertParamCount(
     int nParamsCount, String strFunctionName, List<Expression> listArgs) {
   if (listArgs.size() != nParamsCount)
     errors.SemErr(
         la.line,
         la.col,
         StringUtil.concat(
             strFunctionName,
             " expects ",
             nParamsCount,
             " parameters, but ",
             listArgs.size(),
             " were provided."));
 }
Example #2
0
 public void SemErr(String msg) {
   if (errDist >= minErrDist) errors.SemErr(t.line, t.col, msg);
   errDist = 0;
 }
Example #3
0
 void SynErr(int n) {
   if (errDist >= minErrDist) errors.SynErr(la.line, la.col, n);
   errDist = 0;
 }