So writing a parser isn't too tough, using a library called Bison to parse #shader languages in an attempt to make a transpiler designed similarly to libraries like PostCSS.
https://github.com/alaingalvan/sparklers
It's a WIP but we'll see where this goes. :3