#include "node.h"
#include "warning.h"
#include "main.h"
+#include "Lpars.h"
extern char *sprint();
Give an error message when it fails
*/
+ if ((*nd)->nd_symb == STRING) {
+ TryToString((*nd), tp);
+ }
return CompatCheck(nd, tp, message, TstAssCompat);
}
assignment compatible with the result type of the
function procedure (See Rep. 9.11).
*/
- if (nd->nd_RIGHT->nd_symb == STRING) {
- TryToString(nd->nd_RIGHT, func_type);
- }
if (!ChkAssCompat(&(nd->nd_RIGHT), func_type, "RETURN")) {
break;
}
ChkVariable(&(nd->nd_LEFT), D_DEFINED))) return;
tp = nd->nd_LEFT->nd_type;
- if (nd->nd_RIGHT->nd_symb == STRING) TryToString(nd->nd_RIGHT, tp);
-
if (! ChkAssCompat(&(nd->nd_RIGHT), tp, "assignment")) {
return;
}