nyaapa has asked for the wisdom of the Perl Monks concerning the following question:
Hi, monks
How can i generate a Regexp::Grammars parser from file/scalar?
I use
but i dont like this "hack"..my $str = " ^ <$start_rule> \$ $rules "; my $link = bless(\$str, 'Regexp::Grammars::Precursor'); $parser = qr{$link}ixs;
Update
It's ok to use
my $str = " ^ <$start_rule> \$ $rules "; $parser = qr{$link }ixs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regexp::Grammars parser from scalar
by jakeease (Friar) on May 10, 2013 at 04:01 UTC | |
by nyaapa (Novice) on May 11, 2013 at 14:33 UTC | |
|
Re: Regexp::Grammars parser from scalar
by Anonymous Monk on May 11, 2013 at 08:44 UTC | |
by nyaapa (Novice) on May 11, 2013 at 14:37 UTC |