{"modulePath":"github.com/yamlstar/yamlstar-plugin-parser-reference","version":"v0.2.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\nPackage parser exposes the generated YAML reference parser.\n\n## Constants\n\n```go\nconst Version = \"0.2.6\"\n```\nVersion is the reference parser release version.\n\n## Functions\n\n```go\nfunc Initialize() error\n```\nInitialize loads the generated namespaces once.\n\n## Types\n\n```go\ntype Event struct {\n\tType, Value, Anchor, Tag, Style, Name, Version string\n\tFlow, Explicit                                 bool\n}\n```\nEvent describes a YAMLStar parser event using ordinary Go values. Style is empty for plain scalars. Name is used only by aliases. The reference parser does not supply source positions or comments.\n\n```go\nfunc Parse(input []byte) ([]Event, error)\n```\nParse returns reference-parser events without a serialization round trip. Concurrent calls are supported, but parsing is serialized because the generated parser contains mutable namespace state.\n\n```go\nfunc ParseWith(input []byte, namespace string) (events []Event, err error)\n```\nParseWith invokes a generated parser namespace under the shared runtime lock. The namespace must expose parse and return the standard YAML event maps. Extensions import their generated namespace before calling this function.\n\n","path":"github.com/yamlstar/yamlstar-plugin-parser-reference/parser","name":"parser","synopsis":"Package parser exposes the generated YAML reference parser.","isRedistributable":true}
