1. There isn't really a name for it, but it's a subset of JavaScript and the grammar is available here specified in EBNF, with some railroad diagrams to aid understanding:
https://tomnomnom.github.io/gron/2. That's pretty much exactly why I wrote the tool :)