MCPcopy Create free account
hub / github.com/donatj/sqlread / Lex

Function Lex

scanner.go:182–189  ·  view source on GitHub ↗
(input io.ReaderAt)

Source from the content-addressed store, hash-verified

180}
181
182func Lex(input io.ReaderAt) (*lexer, chan LexItem) {
183 l := &lexer{
184 input: input,
185 items: make(chan LexItem, 2000000),
186 }
187
188 return l, l.items
189}
190
191func LexSection(input io.ReaderAt, off, n int64) (*lexer, chan LexItem) {
192 l := &lexer{

Callers 3

mainFunction · 0.92
interactiveFunction · 0.92
TestStartStateLexerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestStartStateLexerFunction · 0.68