parse loony wikipedia scripting language into sensible json, as best a boy can