Content-Length: 317300 | pFad | http://github.com/bytebase/tsql-parser

ED GitHub - bytebase/tsql-parser: The parser for SQL Server. It is based on the ANTLR4 using grammar https://github.com/antlr/grammars-v4/blob/master/sql/tsql
Skip to content

bytebase/tsql-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The tsql-parser is a parser for T-SQL. It is based on the ANTLR4 and use the grammar from antlr4-grammars-plsql.

Build

Before build, you need to install the ANTLR4.

requirements:

./build.sh

Update grammar

Manually change the grammar file in this project

  1. run ./build.sh to generate the parser code.

From antlr4-grammars-tsql

  1. Clone the TSqlLexer.g4 and TSqlParser.g4 grammar files from https://github.com/antlr/grammars-v4/tree/master/sql/snowflake.
  2. Clone the examples[https://github.com/antlr/grammars-v4/tree/master/sql/tsql/examples], and use it for test.
  3. run ./build.sh to generate the parser code.

Test the parser

Run TestTSQLParser in parser_test.go to test the parser.

go test -v

References

Port

Port folder contains the ported code in another language.

Releases

No releases published

Packages

No packages published

Contributors 5

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/bytebase/tsql-parser

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy