Re: [HACKERS] [OT] flex, yacc, and bison

From: Egon Schmid <eschmid(at)s(dot)netic(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PGSQL Hackers <pgsql-hackers(at)hub(dot)org>
Subject: Re: [HACKERS] [OT] flex, yacc, and bison
Date: 1999-08-18 22:02:07
Message-ID: 37BB2D5F.73441EE4@s.netic.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
>
> "Jackson, DeJuan" <djackson(at)cpsgroup(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jackson, DeJuan 1999-08-18 22:59:09 RE: [HACKERS] [OT] flex, yacc, and bison
Previous Message Michael Alan Dorman 1999-08-18 21:46:13 Re: [HACKERS] [OT] flex, yacc, and bison