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

Function NewSQLiteLexer

internal/engine/sqlite/parser/sqlite_lexer.go:996–1011  ·  view source on GitHub ↗

NewSQLiteLexer produces a new lexer instance for the optional input antlr.CharStream.

(input antlr.CharStream)

Source from the content-addressed store, hash-verified

994
995// NewSQLiteLexer produces a new lexer instance for the optional input antlr.CharStream.
996func NewSQLiteLexer(input antlr.CharStream) *SQLiteLexer {
997 SQLiteLexerInit()
998 l := new(SQLiteLexer)
999 l.BaseLexer = antlr.NewBaseLexer(input)
1000 staticData := &SQLiteLexerLexerStaticData
1001 l.Interpreter = antlr.NewLexerATNSimulator(l, staticData.atn, staticData.decisionToDFA, staticData.PredictionContextCache)
1002 l.channelNames = staticData.ChannelNames
1003 l.modeNames = staticData.ModeNames
1004 l.RuleNames = staticData.RuleNames
1005 l.LiteralNames = staticData.LiteralNames
1006 l.SymbolicNames = staticData.SymbolicNames
1007 l.GrammarFileName = "SQLiteLexer.g4"
1008 // TODO: l.EOF = antlr.TokenEOF
1009
1010 return l
1011}
1012
1013// SQLiteLexer tokens.
1014const (

Callers 1

ParseMethod · 0.92

Calls 1

SQLiteLexerInitFunction · 0.85

Tested by

no test coverage detected