parser

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedTokenType   = errors.New("unexpected token type")
	ErrPrefixParseFnNotFound = errors.New("prefix parse function not found")
	ErrInfixParseFnNotFound  = errors.New("infix parse function not found")
)

Functions

This section is empty.

Types

type Parser

type Parser interface {
	ParseProgram(text string) (*ast.Program, []error)
}

a Pratt Parser interface

func New

func New(l lexer.Lexer) Parser

Jump to

Keyboard shortcuts

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