Documentation
¶
Overview ¶
Package java is @lezer/java's Java grammar for internal/lezer: its parse tables and styleTags rules, generated from the npm package. go generate rewrites them, the test rules of teststyles.mjs and the golden files the tests compare against, with LEZER_NODE_MODULES naming a node_modules directory set up as internal/lezer/gen/gen.mjs says.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Parser = sync.OnceValue(func() *lezer.Parser { p, err := lezer.New(spec, lezer.Externals{}) if err != nil { panic("java: generated spec does not load: " + err.Error()) } return p })
Parser is the Java parser, built the first time it is asked for.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.