MCPcopy Create free account
hub / github.com/barnybug/cli53 / accept

Method accept

lexer.go:29–36  ·  view source on GitHub ↗
(valid string)

Source from the content-addressed store, hash-verified

27}
28
29func (l *lexer) accept(valid string) bool {
30 if strings.IndexRune(valid, l.next()) >= 0 {
31 l.emit()
32 return true
33 }
34 l.backup()
35 return false
36}
37
38func (l *lexer) acceptAny() string {
39 l.next()

Callers 1

ParseKeyValuesFunction · 0.80

Calls 3

nextMethod · 0.95
emitMethod · 0.95
backupMethod · 0.95

Tested by

no test coverage detected