|Parsing some but not all of SQL firstname.lastname@example.org (GuaGuaHuang) (2002-09-25)|
|Re: Parsing some but not all of SQL Mark.van.den.Brand@cwi.nl (M.G.J. van den Brand) (2002-10-13)|
|Re: Parsing some but not all of SQL email@example.com (Hannes liesen) (2002-10-13)|
|Date:||25 Sep 2002 23:57:43 -0400|
|Organization:||Bentium Ltd. (CN99)|
|Posted-Date:||25 Sep 2002 23:57:43 EDT|
I am using yacc&lex to analysis a SQL batch. I only want to find out
the SELECT statements in the batch and make some transformation to
them. Other statements will not be changed.
Must I write a full syntax of SQL, or are there some other simple
[Since it's usually pretty simple to find the statement boundaries in SQL,
you can probably look at the first token of each statement, if it's
SELECT parse it and change it, if not just skip up to the next statement.
Return to the
Search the comp.compilers archives again.