Grammars are for parsing data, not just code (which is a subset of data). For example, see demo_PerlCSV.pl from the Parse::RecDescent demo directory.
In reply to Re^7: Problem with capturing all matches with regex
by hippo
in thread Problem with capturing all matches with regex
by igoryonya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |