Use a real lexer.
skx opened this issue · comments
Steve Kemp commented
We should use a lexer & parser to process our input files.
There would be no functional change, but we'd be able to report upon errors (unknown commands, and bogus-arguments) when we read the recipe-file.
We can then also add tests for our parser, as at the moment we have zero tests.
Steve Kemp commented
See the (huge!) pull request in #3 which implements this. I'm now happy with the state of the change, as my recipes work. That said it is a breaking change:
- Arguments must be quoted.
- The way the application is launched has changed.
Steve Kemp commented
Closed in #3.