parser

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: Apache-2.0 Imports: 8 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)

Types

type ParseOptions

type ParseOptions struct {
	NoLocation bool
	NoSource   bool
	Resolver   Resolver
}

type ParseParams

type ParseParams struct {
	Source  interface{}
	Options ParseOptions
}

type Parser

type Parser struct {
	LexToken lexer.Lexer
	Source   *source.Source
	Options  ParseOptions
	PrevEnd  uint
	Token    lexer.Token
}

type Resolver

type Resolver func(location string, from string) (string, error)

Jump to

Keyboard shortcuts

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