MCPcopy Create free account
hub / github.com/cogentcore/core / InitAll

Method InitAll

parse/parser.go:59–66  ·  view source on GitHub ↗

InitAll initializes everything about the parser -- call this when setting up a new parser after it has been loaded etc

()

Source from the content-addressed store, hash-verified

57// InitAll initializes everything about the parser -- call this when setting up a new
58// parser after it has been loaded etc
59func (pr *Parser) InitAll() {
60 fs := &FileState{} // dummy, for error recording
61 fs.Init()
62 pr.Lexer.CompileAll(&fs.LexState)
63 pr.Lexer.Validate(&fs.LexState)
64 pr.Parser.CompileAll(&fs.ParseState)
65 pr.Parser.Validate(&fs.ParseState)
66}
67
68// LexInit gets the lexer ready to start lexing
69func (pr *Parser) LexInit(fs *FileState) {

Callers 1

OpenStandardMethod · 0.95

Calls 3

InitMethod · 0.95
ValidateMethod · 0.65
CompileAllMethod · 0.45

Tested by

no test coverage detected