parser

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package parser provides parsing functionality for the CSV spreadsheet language, converting list of tokens into an abstract syntax tree.

Index

Constants

View Source
const (
	LOWEST int
	EQUALS
	LESSGREATER
	SUM
	PRODUCT
	PREFIX
	CALL
)

Variables

This section is empty.

Functions

func ErrExpectedIdentifier

func ErrExpectedIdentifier(literal string, position scanner.Position) error

func ErrExpectedPrefix

func ErrExpectedPrefix(actual lexer.Token) error

func ErrExpectedToken

func ErrExpectedToken(expected string, actual lexer.Token) error

func ErrParseInclude added in v0.1.16

func ErrParseInclude(path string, err error) error

func ErrUnexpectedToken

func ErrUnexpectedToken(literal string, position scanner.Position) error

Types

type Parser

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

func New

func New(lex *lexer.Lexer) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (ast.Program, []string, error)

Jump to

Keyboard shortcuts

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