[stringtemplate-interest] SQL generation based on SQL grammer.

Terence Parr parrt at cs.usfca.edu
Wed Feb 14 12:12:35 PST 2007


On Feb 14, 2007, at 3:36 AM, Ashish Malik wrote:

> Hi,
>
>
>
> Is it possible to generate a list of SQL statements using the SQL  
> grammar? Say I wanted to generate random SQL queries to test a  
> datab= ase server.

Yes, See new ANTLR v3 and it's RandomPhrase thing.  The readme has an  
example I think.

Given any grammar with lexer/parser rules, it will generate random  
sentences.

Ter



More information about the stringtemplate-interest mailing list