http://www.perlmonks.org?node_id=234321


in reply to Help with tweaking Parse::RecDescent grammar

You could disambiguate labels with a marker character. Just like in the P::RD code itself, L1: ADD RMOVE 1

Thus labels are terminated with a special character and your grammar never gets confused... label_name: /[a-z]\w*:/i

--
$you = new YOU;
honk() if $you->love(perl)