Re: [HACKERS] [OT] flex, yacc, and bison - Mailing list pgsql-hackers

From Egon Schmid
Subject Re: [HACKERS] [OT] flex, yacc, and bison
Date
Msg-id 37BB2D5F.73441EE4@s.netic.de
Whole thread Raw
In response to Re: [HACKERS] [OT] flex, yacc, and bison  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> 
> "Jackson, DeJuan" <djackson@cpsgroup.com> writes:
> > I need to parse this format:
> > <Database ftpdatabase [hostname[:port]]>
> >  [<DatabaseID somebody>]
> >  [<DatabasePWD mypwd>]
> >  [<Table ftp_users>
> >   [<Uname uname>]
> >   [<CryptedPwd cryptedpwd>]
> >   [<FtpPath ftppath>]
> >  </Table>]
> > </Database>
> 
> That looks suspiciously like an SGML DTD to me...
> 
> Rather than doing the whole lex/yacc bit, I'd suggest finding some
> ready-made SGML-parsing tools.  For instance, if you are handy with
> Perl I think there are some SGML modules in CPAN ... certainly there
> are HTML parsers, which'd probably be easy to adapt to the purpose.

That's definitly not an SGML DTD and it isn't either valid SGML. It will
be hard to find a Perl Module.

-Egon

PS: a small and quick test if my email address is valid


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] [OT] flex, yacc, and bison
Next
From: Michael Alan Dorman
Date:
Subject: Re: [HACKERS] [OT] flex, yacc, and bison