The main implementation of Brat is code-named "Moonbrat". It uses a parser written in Ruby to compile Brat down to Lua, and then executes it. [https://github.com/presidentbeef/brat Source Code]