While Xcode has a plug-in mechanism, it is not publicly documented and it changes between point releases of Xcode (like from Xcode 5.0 to 5.1). You likely can't use it, and even if you figured it out, you don't want to use it.
Instead, what you should do is add either a "Run Script" build phase, or more likely, a "Build Rule". With a "Run Script" build phase you can run any command-line script you want. But with a "Build Rule" you can add commands to parse particular file types, so all files of that type will be built with your compiler.
So when I was trying to learn Haskell a few months ago, I added a Build Rule for *.hs files that ran ghc
, the Haskell compiler. Your script for a build rule will look something like this:
#!/bin/sh
ghc -c -O -odir ${DERIVED_FILE_DIR} ${SCRIPT_INPUT_FILE}
Replace ghc -c -O -odir
with whatever your compiler is and whatever arguments you need.