pganalyze / pg_query_go

Go library to parse and normalize SQL queries using the PostgreSQL query parser
BSD 3-Clause "New" or "Revised" License
663 stars 79 forks source link

Hello, how can I obtain the scan. l and gram. y files used in the project? #94

Open mountainzhang opened 1 year ago

mountainzhang commented 1 year ago

thank you

lfittl commented 11 months ago

You can find them upstream in the Postgres parser directory: https://github.com/postgres/postgres/tree/master/src/backend/parser

(we make slight modifications to them, see https://github.com/pganalyze/libpg_query/tree/16-latest/patches, but for most use cases that difference shouldn't matter)