MODL libraries will be added to this page as they are released. If you don't see a library in your programming language of choice you could build your own library based on the technical specification or sign-up for library alerts.
Creating a Library
If you would like to create a library, you can use the ANTLR4 grammar.
To install the gem add this to your Gemfile:
Then run Bundler:
You can parse MODL like this:
The Java interpreter is available on GitHub.
This library is a little behind the latest version and is due to be updated in the coming weeks. It doesn't include an API for accessing the MODL object yet but does provide the option of converting the MODL object to JSON – which can then be accessed using the Java JSON API. To convert MODL to JSON:
The library also includes a useful HTTP wrapper.
We're still working on other libraries. In the meantime, you could use the Java http wrapper service. You'll need Java and Gradle.
Setting up the HTTP server
To install the Java library and start the HTTP server, run these commands in the directory of your choice:
Using the HTTP server
Once the server is running, you can submit data directly through the query string:
http://0.0.0.0:8080/?modl=test(message=this is a test message) .
The server converts it to JSON.
Using the basic client
There's a very basic client available in the
client folder of the project – open the
client/index.html file in a web browser – you can use it to send MODL to the HTTP server.