Textpow is a library to parse and process Textmate bundles. Although created created for their use in a word processor, these bundles have many other uses. For example, we have used them to create a syntax highligting utility and also the markup rendering engine used to render this documentation.
If you have rubygems installation is straightforward by typing (as root if needed):
gem install -r textpow --include-dependencies
If you prefer to get the sources, the last stable version may be downloaded here.
The current version of Textpow (0.9.0) is able to parse syntax (tmLanguage, tmSyntax) and theme (tmTheme) files.