Believe that Parse::RecDescent can now (current version) generate standalone code, though not sure, just heard rumors:-)
You can use SQL::Parser which is a part of SQL::Statement to parse SQL. It's almost fully SQL 92 compliant:-) Let me know if you have questions or anything else, I'll try to fill you in on it. You can also take a look at SQL::Statement and how it uses SQL::Parser. Ilya -----Original Message----- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 3/12/02 10:05 AM Subject: Re: Thoughts on DBD::Pg statement parser >>>>> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes: >> If any (pre)parser at all, why not use perl, so we all understand. If it gets >> too complicated for straight perl, use Parse::RecDecsent Matt> Because parsing is easier in C ;-) And Parse::RecDescent doesn't generate a standalone engine... you have to install Parse::RecDescent even on the target machine. However, I believe Parse::Yacc or one of its kin does indeed generate pure Perl code that could be reused. Wait! Don't we already have a SQL::Statement or something? Why are we reinventing things? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
