in reply to Parse::RecDescent question
That should get you started. If you have more questions, the Parse::RecDescent mailing list can be accessed via http://lists.perl.org.grammar: line(s?) /\z/ { $item[1] } line: <skip:[ \t]+> command arg(s?) "\n" { [$item[2], $item[3]] } command: /\w+/ arg: <perl_quotelike>
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
the problem is that "perl_quotelike" doesn't match a bareword! So you have to have either barewords or quoted words.grammar: line(s?) /\z/ { $item[1] } line: <skip:'[ \t]*'> command arg(s?) "\n" { [$item[2], @{$item[3]}] } command: /\w+/ arg: /\w+/ | <perl_quotelike> { $item[1][2] }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parse::RecDescent question
by linux454 (Pilgrim) on Dec 12, 2003 at 16:29 UTC | |
|
Re: •Re: Parse::RecDescent question
by linux454 (Pilgrim) on Dec 12, 2003 at 20:40 UTC |