The thoughts are still swirling around in my head a bit, but given the current targets that Antlr4 supports, I fear that .otto file parsing will need to be handled in JavaScript or C++.