rossta has asked for the wisdom of the Perl Monks concerning the following question:
as an example grammer, butfunction_call: identifier '(' arg(s?) ')' identifier: /[a-z]\w*/i
fails with#! /usr/local/bin/perl -ws use Parse::RecDescent; my $parse = Parse::RecDescent->new(<<'EndGrammar'); function_call: identifier '(' arg(s) ')' identifier: /[a-z]\w*/i arg: 'arg' EndGrammar while (<DATA>) { print $parse->function_call($_); } __DATA__ a(1)
Use of uninitialized value in print at parse.pl line 18, <DATA> line 1.
Can anyone suggest what I'm doing wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Does Parse::RecDescent support function calls?
by merlyn (Sage) on Jul 23, 2003 at 17:00 UTC |