Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Parse::RecDescent Grammar Funby Abigail-II (Bishop) |
on Jul 25, 2002 at 11:25 UTC ( [id://185167]=note: print w/replies, xml ) | Need Help?? |
Your problem is the greedyness of punct. If it's ok that
!@#$ will be parsed as four tokens, you
should be able to get away with:
although I have not tested it. Otherwise, you may want to try something like (also untested):
Note that your link rule consumes "[[]]]" completely, as a leading [[, a ] as the content, and a trailing ]]. Similary, "[[]] foo [[]]" is consumed by the link rule completely, with "]] foo [[" as the part inside the 'link'. Abigail
In Section
Seekers of Perl Wisdom
|
|