parser

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func NewParser

func NewParser(lex *lexer.Lexer) *Parser

func (*Parser) Errors

func (parser *Parser) Errors() []string

func (*Parser) ParseProgram

func (parser *Parser) ParseProgram() *ast.Program

type Priority

type Priority int
const (
	LOWEST Priority = iota + 1
	LOGICAL
	EQUALS
	LESSGREATER
	OR
	AND
	SHIFT
	SUM
	PRODUCT
	PREFIX
	METHOD
	CALL
	INDEX
)

Jump to

Keyboard shortcuts

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