parser

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LOWEST int = iota + 1
	AND
	OR
	REGEX
	EQUALS
	LESS_GREATER
	CONCAT
	PREFIX
	CALL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseError

type ParseError struct {
	Token   token.Token
	Message string
}

func MissingSemicolon

func MissingSemicolon(m *ast.Meta) *ParseError

func TypeConversionError

func TypeConversionError(m *ast.Meta, tt string) *ParseError

func UndefinedPrefix

func UndefinedPrefix(m *ast.Meta) *ParseError

func UnexpectedToken

func UnexpectedToken(m *ast.Meta, expects ...string) *ParseError

func (*ParseError) Error

func (e *ParseError) Error() string

func (*ParseError) ErrorToken

func (e *ParseError) ErrorToken() token.Token

type Parser

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

func New

func New(l *lexer.Lexer) *Parser

func (*Parser) ParseVCL

func (p *Parser) ParseVCL() (*ast.VCL, error)

Jump to

Keyboard shortcuts

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