This is a community-supported grammar file for t-sql. It's not fully complete so far because a grammar reference of T-SQL is hard to clarify. MS website has grammar reference for different statements, but it's not a complete file, so we try hard to stick to the references we could find, and bit by bit make it a more complete grammar.
The reference for the Adaptive Server Enterprise variant of TSql is online.