Workaround for a bug introduced in Pegasus 2.3.1. It doesn't generate code for state expressions at the start of the main rule correctly. Not sure what the bug is, but this equivalent grammar works fine.