in reply to Re: Perl not BNF-able??
in thread Perl not BNF-able??
Why do you say that snippet is not BNF-able? Parts of Perl cannot be expressed by BNF, but your snippet is not one of them as far as I can tell.
statement : sub_proto statement : sub_def term : anon_sub sub_proto : ws? "sub" ws? sym_name proto? ws? ";" sub_def : ws? "sub" ws? sym_name proto? ws? block anon_sub : ws? "sub" block sym_name : ident "::" sym_name sym_name : ident
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl not BNF-able??
by Anonymous Monk on Jul 05, 2005 at 09:00 UTC | |
by ikegami (Patriarch) on Jul 05, 2005 at 15:02 UTC |