MCPcopy Index your code
hub / github.com/expr-lang/expr / dot

Function dot

parser/lexer/state.go:118–127  ·  view source on GitHub ↗
(l *Lexer)

Source from the content-addressed store, hash-verified

116}
117
118func dot(l *Lexer) stateFn {
119 l.next()
120 if l.accept("0123456789") {
121 l.backup()
122 return number
123 }
124 l.accept(".")
125 l.emit(Operator)
126 return root
127}
128
129func identifier(l *Lexer) stateFn {
130loop:

Callers

nothing calls this directly

Calls 4

acceptMethod · 0.80
backupMethod · 0.80
nextMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected