parser

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package parser exposes the generated JSON-comments reference parser. It requires no C compiler or shared library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize() error

Initialize loads the generated namespaces once.

func ParseEDN

func ParseEDN(input, options string) (output string, err error)

ParseEDN implements the existing shared-plugin EDN contract.

Types

type Event

type Event struct {
	Type, Value, Anchor, Tag, Style, Name, Version string
	Flow, Explicit                                 bool
}

Event 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.

func Parse

func Parse(input []byte) (events []Event, err error)

Parse returns events without an EDN serialization round trip. Concurrent callers are supported, but reference parsing is serialized.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL