Creating Arduino library file
The Arduino IDE has a compiler, and will in the end compile the library with whatever .ino script you'll write. But you don't need any compiler to write a library. All you need is a text editor, and produce .cpp and .h files.

However when you test the library, you'll have to use the Arduino IDE to compile it.