Commits

Anonymous committed 0072299

Removed unused var; added error check for ``lambda: x=1''.

  • Participants
  • Parent commits f08d7f3
  • Branches legacy-trunk

Comments (0)

Files changed (1)

 	struct compiling *c;
 	node *n;
 {
-	int i;
 	REQ(n, factor);
 	if (TYPE(CHILD(n, 0)) == PLUS) {
 		com_factor(c, CHILD(n, 1));
 				return;
 			}
 			break;
+
+		case lambdef:
+			err_setstr(SyntaxError, "can't assign to lambda");
+			c->c_errors++;
+			return;
 		
 		default:
 			fprintf(stderr, "node type %d\n", TYPE(n));