public static Pipe instantiatePipe(String name, Datatype t, int lineN) {
		switch (t) {
		case Bool:
			return new BoolPipe(name);
		case Double:
			return new DoublePipe(name);
		case I16:
			return new I16Pipe(name);
		case I32:
			return new I32Pipe(name);
		case I64:
			return new I64Pipe(name);
		case I8:
			return new I8Pipe(name);
		case Single:
			return new SinglePipe(name);
		case String:
			return new StringPipe(name);
		default:
			ParseError.throwIf(true, lineN, "Could not instantiate type " + t);
			return null;
		}
	}