in reply to Regexp::Grammars parser from scalar

basically what jakeease said, esp http://search.cpan.org/perldoc/Regexp::Grammars#Named_grammars

For an example see inside Regexp::Grammars::Common::String - Some basic String parsing Rules for Regexp::Grammars

See also RFC: A walkthrough from JSON ABNF to Regexp::Grammars

  • Comment on Re: Regexp::Grammars parser from scalar

Replies are listed 'Best First'.
Re^2: Regexp::Grammars parser from scalar
by nyaapa (Novice) on May 11, 2013 at 14:37 UTC
    thanks, i found that i couldn't use form like
    my $str = " ^ <$start_rule> \$ $rules "; $parser = qr{$link }ixs;
    because of a bug :)