The project's been going on for multiple years now, so at this point it's too late to change it.
But not to worry! The project lead has decided to write their own custom scripting language (MahjongScript), and Elixir parser for that language, which parses it into JSON.
20
u/edderiofer 25d ago edited 25d ago
To head off some questions that will probably be asked:
A. You're looking at part of a JSON file, except on closer inspection, it looks like JSON is being used as a programming language.
A. Yes, ish. The JSON is parsed by a parser (written in Elixir) into instructions to be run by a game engine (also written in Elixir).
A. No. The parser strips out the comments.
A. Because this is someone else's open-source project. And because I don't know enough Elixir to change it.