parser

package
v0.3.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDiagnostics

func FormatDiagnostics(errs []error) string

Types

type Diagnostic

type Diagnostic = diag.Diagnostic

Diagnostic is an alias for the shared compiler diagnostic type.

type Parser

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

func New

func New(tokens []lexer.Token) *Parser

func (*Parser) Errors

func (p *Parser) Errors() []error

func (*Parser) ParseProgram

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

func (*Parser) SetSource

func (p *Parser) SetSource(src string)

Jump to

Keyboard shortcuts

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