Ran across this library over the weekend. It looks cool, perhaps we could use it to parse more complex input files like NWChem http://nearley.js.org/