parser

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LOWEST precedence level for lowest precedence
	LOWEST int
	// AND_OR_NOT precedence level for logical operators (AND, OR)
	AND_OR_NOT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser is a struct that contains information and functions related to parsing

func NewParser

func NewParser(str string) (p *Parser)

NewParser creates a new Parser object with the given input string

func (*Parser) Error

func (p *Parser) Error() error

Error returns an error if there are any errors in the Parser's errors slice

func (*Parser) Parse

func (p *Parser) Parse() (*ast.Schema, error)

Parse reads and parses the input string and returns an AST representation of the schema, along with any errors encountered during parsing

Jump to

Keyboard shortcuts

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