commit | b3782d2dc8f872c43fcf53b9436c4e881d3f1e2d | [log] [download] |
---|---|---|
author | nicm <nicm> | Thu Jun 04 07:12:05 2020 +0000 |
committer | nicm <nicm> | Thu Jun 04 07:12:05 2020 +0000 |
tree | f7c75fcbdc0ce56e6f55cce00480a49a3dd02f84 | |
parent | 3f6af4156f451cfbee867babe74cc6675eb3f947 [diff] |
Instead of using a custom parse function to process {}, treat it as a set of statements and parse with yacc, then convert back to a string as the last step. This means the rules are consistent inside and outside {}, %if and friends work at the right time, and the final result isn't littered with unnecessary newlines.