Re: Parse::RecDescent and catenating (no skip match)

[email protected] (Ted Zlatanov) Tue, 23 Jul 2002 10:55:06 -0400
Newsgroups perl.recdescent
Organization Теодор Златанов @ Cienfuegos
Message-ID <[email protected]>
On Tue, 23 Jul 2002, [email protected] wrote:
> Marco pointed out to me that I should set the skip character to
> null.  This is fine for a small grammar, but the one I'm working on
> has 1,743 lines in it.  I'm trying to clean it up by removing all of
> the explicit commas that separate the tokens.  My example below is
> simple.  My units are frequencies, temperatures, distances (miles,
> kilometers) and such.
> 
> My ultimate goal is to be able to catenate two tokens without
> requiring a separator.  I would like to set the $skip=",".  And
> define my subrules appropriately to not require a separator.

Why not preprocess the input and make it consistent (insert or remove
the skip ',' character, but be consistent about it)?  Or are you
determined to do it 100% in P::RD? :)

Ted