Re: ISO TESTS for a Pg lexer+parser

From: "Kynn Jones" <kynnjo(at)gmail(dot)com>
To: "Kynn Jones" <kynnjo(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: ISO TESTS for a Pg lexer+parser
Date: 2007-07-19 17:33:17
Message-ID: c2350ba40707191033v24bd89cfv33cf57f1b0d59449@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/6/07, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> * Kynn Jones (kynnjo(at)gmail(dot)com) wrote:
> > Hi! I am in the process of writing a PostgreSQL lexer/parser in Perl,
> > because everything else I've found in this area is too buggy. I'm
> > basing this lexer/parser on the lexer and parser encoded respectively
> > in scan.l and gram.y under src/backend/parser.
> >
> > I'm looking for a solid collection of test cases to test my
> > lexer/parser. (I'm hoping that such a collection has already been
> > produced to test the PostgreSQL yacc-generated parser that comes with
> > the PostgreSQL distribution.)

> ...PG's got a regression test suite that
> would probably work decently for testing your lexer/parser.

I found a test suite under

src/test/regress

(thanks to Dann Corbit for the path), but as far as I can tell those
tests exercise only the parser. Maybe the authors figured that the
lexer would be tested sufficiently, albeit indirectly, through the
tests of the parser?

If I've missed something, I'd be very grateful if someone could tell
me which files in this test suite are devoted to testing the lexer
specifically.

TIA!

kj

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael P. Soulier 2007-07-19 17:43:28 "template1" being accessed by other users
Previous Message Peter Wiersig 2007-07-19 15:42:33 Re: IN clause performance