How can I write a language-independent API?
===

I want to write an API, or a library of methods, that can be accessed from any programming language (or as many programming languages as possible.) What would be the best way to implement this?