parse

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package parse provides tony parsing support.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParse  = errors.New("parse error")
	ErrKeyTag = fmt.Errorf("%w: key cannot be tagged", ErrParse)
)

Functions

func Parse

func Parse(d []byte, opts ...ParseOption) (*ir.Node, error)

Types

type ParseOption

type ParseOption func(*parseOpts)

func NoBrackets

func NoBrackets() ParseOption

func ParseComments

func ParseComments(v bool) ParseOption

func ParseFormat

func ParseFormat(f format.Format) ParseOption

func ParseJSON

func ParseJSON() ParseOption

func ParsePositions

func ParsePositions(m map[*ir.Node]*token.Pos) ParseOption

func ParseTony

func ParseTony() ParseOption

func ParseYAML

func ParseYAML() ParseOption

Jump to

Keyboard shortcuts

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