Le 31/01/2016 21:08, stepharo a écrit :
But given that you have the LALR postgres grammar in the source code of postgres?
Where?
Where Stephan found it?
https://github.com/postgres/postgres/blob/master/src/backend/parser/gram.y
Because I'm interested.
I had a look. It's long (14000 lines) but there is a bit of noise in there (semantic actions and support functions).
It's nice, well commented and the layout is very clear. Probably the nicest I've come accross.
The other key to check is the lexer. One can hide a lot of complexity inside the lexer (R, I'm looking at you!).
Thierry
Moose-dev mailing list Moose-dev@list.inf.unibe.ch https://www.list.inf.unibe.ch/listinfo/moose-dev