https://github.com/postgres/postgres/blob/master/src/pl/plpgsql/src/pl_gram.y
Verstuurd vanaf mijn iPad > Op 26 feb. 2016 om 22:54 heeft Anne Etien <[hidden email]> 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 <[hidden email]> 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 >>> [hidden email] >>> https://www.list.inf.unibe.ch/listinfo/moose-dev >> >> _______________________________________________ >> Moose-dev mailing list >> [hidden email] >> https://www.list.inf.unibe.ch/listinfo/moose-dev > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.list.inf.unibe.ch/listinfo/moose-dev Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Thanks
Anne > Le 27 févr. 2016 à 08:27, Stephan Eggermont <[hidden email]> a écrit : > > https://github.com/postgres/postgres/blob/master/src/pl/plpgsql/src/pl_gram.y > > Verstuurd vanaf mijn iPad > >> Op 26 feb. 2016 om 22:54 heeft Anne Etien <[hidden email]> 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 <[hidden email]> 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 >>>> [hidden email] >>>> https://www.list.inf.unibe.ch/listinfo/moose-dev >>> >>> _______________________________________________ >>> Moose-dev mailing list >>> [hidden email] >>> https://www.list.inf.unibe.ch/listinfo/moose-dev >> >> _______________________________________________ >> Moose-dev mailing list >> [hidden email] >> https://www.list.inf.unibe.ch/listinfo/moose-dev > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.list.inf.unibe.ch/listinfo/moose-dev _______________________________________________ Moose-dev mailing list [hidden email] https://www.list.inf.unibe.ch/listinfo/moose-dev |
Free forum by Nabble | Edit this page |