parser

package
v0.0.0-...-84c8e1d Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLastTokenEOF = errors.New("last token must be EOF")

Functions

func Parse

func Parse(tokens []lexer.Token, loadFile func(string) (*File, error)) (*File, error)

Types

type ParserError

type ParserError struct {
	Inner    error
	Location lexer.Location
}

func (*ParserError) At

func (e *ParserError) At() lexer.Location

func (*ParserError) Error

func (e *ParserError) Error() string

func (*ParserError) Unwrap

func (e *ParserError) Unwrap() error

type UnexpectedTokenError

type UnexpectedTokenError struct {
	Got      *lexer.Token
	Expected string
}

func (*UnexpectedTokenError) Error

func (e *UnexpectedTokenError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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