Op 26 feb. 2016 om 22:54 heeft Anne Etien
<anne.etien(a)univ-lille1.fr> het volgende geschreven:
We briefly have a look with Nicolas today and it seems that there is not the description
of the function with begin, end.
But it is not so strange when we have a look at postgresql 9.5 specifications
http://www.postgresql.org/docs/current/static/sql-createfunction.html (definition: A
string constant defining the function; the meaning depends on the language. It can be an
internal function name, the path to an object file, an SQL command, or text in a
procedural language.)
Hard to parse in that condition and we want to parse the content of the function. Any
idea? Is there a pl/psql grammar?
Anne
Le 31 janv. 2016 à 21:44, Thierry Goubier
<thierry.goubier(a)gmail.com> a écrit :
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(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev