Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/expr-lang/expr
/ New
Function
New
parser/lexer/lexer.go:34–38 ·
view source on GitHub ↗
New returns a reusable lexer.
()
Source
from the content-addressed store, hash-verified
32
33
// New returns a reusable lexer.
34
func
New() *Lexer {
35
return
&Lexer{
36
tokens: ring.New[Token](ringChunkSize),
37
}
38
}
39
40
type
Lexer
struct
{
41
state stateFn
Callers
2
Lex
Function · 0.70
Parse
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected