MCPcopy Create free account
hub / github.com/CloudyKit/jet / run

Method run

lex.go:292–299  ·  view source on GitHub ↗

run runs the state machine for the lexer.

()

Source from the content-addressed store, hash-verified

290
291// run runs the state machine for the lexer.
292func (l *lexer) run() {
293 go func() {
294 for l.state = lexText; l.state != nil; {
295 l.state = l.state(l)
296 }
297 close(l.items)
298 }()
299}
300
301// state functions
302func lexText(l *lexer) stateFn {

Callers 3

lexFunction · 0.95
parseMethod · 0.80

Calls

no outgoing calls

Tested by 1