StringTemplate-js
StringTemplate-js copied to clipboard
Peg compile fails with pegjs 0.90
Hi John! First of all congrats for the hard work to do the the port! StringTemplate is one of my favourite pieces of software and I am delighted to see it ported to JS. I will happy to help with testing and occasional PRs.
I am testing it and fails for me at build time. Compiles with pegjs 0.80 but fails with pegjs v. 0.90. I have the following errors on the grammar:
cd compiler
pegjs --allowed-start-rules groupFile,templateFile,templateFileRaw,templateAndEOF stGrammar.pegjs
213:15: Expected "!", "$", "&", "(", ".", character class, comment, end of line, identifier, literal or whitespace but "{" found.
The problem appears not only here but in all other empty expressions for error handling.
grunt-peg 2.0.0 relies also on pegjs ~0.9.0
It looks like a grammar refactor is needed to support pegjs 0.9.0.