MCPcopy Create free account
hub / github.com/aptly-dev/aptly / lex

Function lex

query/lex.go:74–82  ·  view source on GitHub ↗
(name, input string)

Source from the content-addressed store, hash-verified

72}
73
74func lex(name, input string) (*lexer, chan item) {
75 l := &lexer{
76 name: name,
77 input: input,
78 items: make(chan item),
79 }
80 go l.run() // Concurrently run state machine.
81 return l, l.items
82}
83
84// emit passes an item back to the client.
85func (l *lexer) emit(t itemType) {

Callers 7

ParseFunction · 0.85
TestParsingMethod · 0.85
TestParsingErrorsMethod · 0.85
TestLexingMethod · 0.85
TestConsumeMethod · 0.85
TestStringMethod · 0.85
TestErrorMethod · 0.85

Calls 1

runMethod · 0.95

Tested by 6

TestParsingMethod · 0.68
TestParsingErrorsMethod · 0.68
TestLexingMethod · 0.68
TestConsumeMethod · 0.68
TestStringMethod · 0.68
TestErrorMethod · 0.68