MCPcopy Create free account
hub / github.com/donatj/sqlread / Run

Method Run

parser.go:40–46  ·  view source on GitHub ↗

Run begins the Parser state machine It requires a start state

(start parseState)

Source from the content-addressed store, hash-verified

38// Run begins the Parser state machine
39// It requires a start state
40func (p *Parser) Run(start parseState) error {
41 for state := start; state != nil; {
42 state = state(p)
43 }
44
45 return p.err
46}
47
48func (p *Parser) errorUnexpectedLex(f LexItem, e ...lexItemType) {
49 s := ""

Callers 4

TestStartStateLexerFunction · 0.45
execQueryFunction · 0.45
mainFunction · 0.45
interactiveFunction · 0.45

Calls 1

stateFuncType · 0.85

Tested by 1

TestStartStateLexerFunction · 0.36