Quote:
>Is there a yacc-like package for perl, i.e. something that can convert a
>context-free grammar into perl code?
Use Berkeley yacc with -p option. Thanks to:
Quote:
> Patches to version 1.6 to produce Perl code by
> Ray Lischner
> uunet!mntgfx!lisch
> Patches to version 1.8 to produce Perl code by
> Rick Ohnemus
> uunet!sparky!rick
Check up (dist dir)/test/{getdate,calc}.y for perl usage.
It is particularly useful for checking your grammer rules etc.
Mandeep.
__________________________________________________________________
"I'm very brave generally," he went on in a low voice:
"only to-day I happen to have a headache."
-- Lewis Carroll
__________________________________________________________________