in reply to Re: My issues with Parse::RecDescent
in thread My issues with Parse::RecDescent
I know I'm a pain in the a** , but please bear with me .use strict; use Parse::RecDescent; my $grammar = q( START: ( number | word )+ word: /\w+/ { print "found a word\n"; } number: /\d+/ { print "found a number\n"; } ); Parse::RecDescent->new($grammar)->START("123 geo 456 bam");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: My issues with Parse::RecDescent
by Anonymous Monk on Aug 26, 2008 at 20:15 UTC | |
by Anonymous Monk on Aug 26, 2008 at 20:17 UTC | |
by Alien (Monk) on Aug 26, 2008 at 20:19 UTC |