parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(p ParseParams) (*ast.Document, error)

func ParseValue

func ParseValue(p ParseParams) (ast.Value, error)

ParseValue parses params and returns ast value

Types

type ParseOptions

type ParseOptions struct {
	NoLocation bool
	NoSource   bool
}

type ParseParams

type ParseParams struct {
	Source  interface{}
	Options ParseOptions
}

type Parser

type Parser struct {
	Source  *source.Source
	Options ParseOptions
	PrevEnd int
	Token   lexer.Token
	// contains filtered or unexported fields
}