This is a quick and dirty Modelica parser written in Javascript (well, PEG.js)