MCPcopy Index your code
hub / github.com/aptly-dev/aptly / lexer

Struct lexer

query/lex.go:64–72  ·  view source on GitHub ↗

lexer holds the state of the scanner.

Source from the content-addressed store, hash-verified

62
63// lexer holds the state of the scanner.
64type lexer struct {
65 name string // used only for error reports.
66 input string // the string being scanned.
67 start int // start position of this item.
68 pos int // current position in the input.
69 width int // width of last rune read from input.
70 items chan item // channel of scanned items.
71 last item
72}
73
74func lex(name, input string) (*lexer, chan item) {
75 l := &lexer{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected