Esempio n. 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."));
 }
Esempio n. 2
0
 public void SemErr(String msg) {
   if (errDist >= minErrDist) errors.SemErr(t.line, t.col, msg);
   errDist = 0;
 }