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


in reply to Perl not BNF-able??

You may be interested in PPI.
-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}