Is parsing in multiple passes common for PEG grammars?
问题 I'm designing a music programming language and implementing its syntax as a PEG grammar. The parsing process has ended up being fairly complicated, so what seemed like the simplest approach was to define several, separate grammars, and apply them in sequence. So far I have three grammars: Take the entire contents of source file and strip out the comments. Take the source file (comments removed) and separate it by instrument. This results in pairs of instrument name/definition and the "music