bugsbunny has asked for the wisdom of the Perl Monks concerning the following question:
at the moment the only interesting thing for me is the second line i.e. :class htb 2:11 root leaf 13: prio 0 rate 3125bps ceil ..... Sent 16822354 bytes 15272 pkts (dropped 0, overlimits 0) lended: 15272 borrowed: 0 giants: 0 tokens: 38 ctokens: 38
so how to make the grammar in a such a way so that i skip other things an concentrate only on this one..(i don't mean i doesn't want to parse the other stuff, just want to temporarily skip them until i finish second row.) I've tried to use <resync> w/o succees.. Currently i'm tryng this w/o big success, where is my error ? I'm missing something very basic !!!Sent 16822354 bytes 15272 pkts (dropped 0, overlimits 0)
our $tcClassGrammar = q{ classStart : class(s) class : 'class' classinfo stats stats2 stats3 #{print "$item[0]\n +"; 1} classinfo : /.+?\n/ stats : 'Sent' /\d+/ 'bytes' /\d+/ 'pkts' '(dropped' /\d+/ ',' 'ov +erlimits' /d+/ ')' { print "item[0]"; 1} stats2 : /.+?\n/ stats3 : /.+?\n/ };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RecDescent, flushing/skipping stuff
by halley (Prior) on Jul 11, 2003 at 13:49 UTC | |
|
Re: RecDescent, flushing/skipping stuff
by jryan (Vicar) on Jul 11, 2003 at 15:37 UTC | |
|
Re: RecDescent, flushing/skipping stuff
by bugsbunny (Scribe) on Jul 11, 2003 at 10:45 UTC | |
|
Re: RecDescent, flushing/skipping stuff
by tzz (Monk) on Jul 11, 2003 at 13:55 UTC | |
|
Re: RecDescent, flushing/skipping stuff
by bugsbunny (Scribe) on Jul 11, 2003 at 20:35 UTC |