MCPcopy
hub / github.com/sqlc-dev/sqlc / NewSQLiteParser

Function NewSQLiteParser

internal/engine/sqlite/parser/sqlite_parser.go:1217–1229  ·  view source on GitHub ↗

NewSQLiteParser produces a new parser instance for the optional input antlr.TokenStream.

(input antlr.TokenStream)

Source from the content-addressed store, hash-verified

1215
1216// NewSQLiteParser produces a new parser instance for the optional input antlr.TokenStream.
1217func NewSQLiteParser(input antlr.TokenStream) *SQLiteParser {
1218 SQLiteParserInit()
1219 this := new(SQLiteParser)
1220 this.BaseParser = antlr.NewBaseParser(input)
1221 staticData := &SQLiteParserParserStaticData
1222 this.Interpreter = antlr.NewParserATNSimulator(this, staticData.atn, staticData.decisionToDFA, staticData.PredictionContextCache)
1223 this.RuleNames = staticData.RuleNames
1224 this.LiteralNames = staticData.LiteralNames
1225 this.SymbolicNames = staticData.SymbolicNames
1226 this.GrammarFileName = "SQLiteParser.g4"
1227
1228 return this
1229}
1230
1231// SQLiteParser tokens.
1232const (

Callers 1

ParseMethod · 0.92

Calls 1

SQLiteParserInitFunction · 0.85

Tested by

no test coverage detected