Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Parse::RecDescent grammar definition

by citromatik (Curate)
on Mar 21, 2011 at 12:56 UTC ( #894500=note: print w/ replies, xml ) Need Help??


in reply to Re: Parse::RecDescent grammar definition
in thread Parse::RecDescent grammar definition

I don't have any problem running the example I posted in Perl 5.10:

#!/usr/bin/perl use strict; use warnings; use Parse::RecDescent; my $p2 = Parse::RecDescent->new(q( hyphen : "-" option : "a" | "b" | "c" Format : Entry(s) Pre : hyphen option Post : option hyphen Entry : Pre | Post { use Data::Dumper; print Dumper \%ite +m;} )); $p2->Format('a-'); $p2->Format('-a');

output:

$VAR1 = { 'Post' => '-', '__RULE__' => 'Entry' };

citromatik


Comment on Re^2: Parse::RecDescent grammar definition
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://894500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-12-22 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls