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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help with tweaking Parse::RecDescent grammar
by Abigail-II (Bishop) on Feb 11, 2003 at 13:48 UTC | |
(jeffa) 2Re: Help with tweaking Parse::RecDescent grammar
by jeffa (Bishop) on Feb 11, 2003 at 13:22 UTC |
In Section
Seekers of Perl Wisdom