MCPcopy Index your code
hub / github.com/yuin/gopher-lua / Parse

Function Parse

parse/lexer.go:468–479  ·  view source on GitHub ↗
(reader io.Reader, name string)

Source from the content-addressed store, hash-verified

466}
467
468func Parse(reader io.Reader, name string) (chunk []ast.Stmt, err error) {
469 lexer := &Lexer{NewScanner(reader, name), nil, false, ast.Token{Str: ""}, TNil}
470 chunk = nil
471 defer func() {
472 if e := recover(); e != nil {
473 err, _ = e.(error)
474 }
475 }()
476 yyParse(lexer)
477 chunk = lexer.Stmts
478 return
479}
480
481// }}}
482

Callers 4

LoadMethod · 0.92
LoadMethod · 0.92
testScriptCompileFunction · 0.92
mainAuxFunction · 0.92

Calls 2

NewScannerFunction · 0.85
yyParseFunction · 0.85

Tested by 1

testScriptCompileFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…