stazz / java-sql-generator

A framework to generate syntactically correct SQL statements in a typesafe, easy, and uniform way (without StringBuilders).
49 stars 28 forks source link

Is there anything from the approach of turning the original BNF into this project's code that could be extracted? #13

Open mbenson opened 11 years ago

mbenson commented 11 years ago

I have been thinking for some time about generating EDSLs from BNF. Do you have any thoughts on this?

br, Matt

stazz commented 11 years ago

Hey Matt,

I really wanted to do some kind of automatic generation from BNF to what this project is now. Unfortunately, I didn't have any tools for that, so I pretty much did everything manually. With correct tools, however, I think it would be possible, to some extent.

The problem is that especially in SQL, the BNF syntax is sometimes a bit too complex. So you will end up with pretty much unusable framework as everything is so fragmented. You still need some manual work to look at the result of generation and make API actually nice to use. :) I know for sure that in case of SQL that is certainly required.