MCPcopy Create free account
hub / github.com/araddon/qlbridge / init

Function init

dialects/example/main.go:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30)
31
32func init() {
33 // inject any new tokens into QLBridge.Lex describing the custom tokens we created
34 lex.TokenNameMap[TokenSubscribeTo] = &lex.TokenInfo{Description: "subscribeto"}
35
36 // OverRide the Identity Characters in lexer to allow a dash in identity
37 lex.IDENTITY_CHARS = "_./-"
38 lex.LoadTokenInfo()
39
40 ourDialect.Init()
41}
42
43func verifyLexerTokens(l *lex.Lexer, tokens []lex.Token) {
44 for _, goodToken := range tokens {

Callers

nothing calls this directly

Calls 2

LoadTokenInfoFunction · 0.92
InitMethod · 0.65

Tested by

no test coverage detected