From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com> |
Cc: | PGSQL Hackers <pgsql-hackers(at)hub(dot)org> |
Subject: | Re: [HACKERS] [OT] flex, yacc, and bison |
Date: | 1999-08-18 20:59:35 |
Message-ID: | 26751.935009975@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"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.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Alan Dorman | 1999-08-18 21:46:13 | Re: [HACKERS] [OT] flex, yacc, and bison |
Previous Message | Lamar Owen | 1999-08-18 20:10:40 | Re: Pronunciation of "PostgreSQL" (was: Re: [HACKERS] New man pages) |