Hi, I posted the following sort of question to SO:
http://stackoverflow.com/questions/14471921/how-do-i-dry-this-pegjs-rule
I'm tempted to use something close to this:
id:idShortcut? classes:classShortcut* attrs:fullAttribute*
But i don't want it to match if all three are empty/absent. Is there a way to do this in peg? Right now i have a really repetitive 3 prong rule.