API/Samples/Java/Office/OokScriptProvider
The OokScriptProvider is a sample extension that shows how to integrate a new macro scripting language (in this case the esotheric language Ook) into LibreOffice.
You can find the source code within the LibreOffice repository in /contrib/sdk/examples/java/OokScriptProvider
You can find a binary version here.