MCPcopy
hub / github.com/expr-lang/expr / Reset

Method Reset

parser/lexer/lexer.go:54–58  ·  view source on GitHub ↗
(source file.Source)

Source from the content-addressed store, hash-verified

52}
53
54func (l *Lexer) Reset(source file.Source) {
55 l.source = source
56 l.tokens.Reset()
57 l.state = root
58}
59
60func (l *Lexer) Next() (Token, error) {
61 for l.state != nil && l.err == nil && l.tokens.Len() == 0 {

Callers 3

runVisitorsMethod · 0.45
ParseMethod · 0.45
LexFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected