parser

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: GPL-3.0 Imports: 8 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 {
	HadError bool
	Tokens   []tokens.Token
	Headers  []interfaces.DatapackHeader
	// contains filtered or unexported fields
}

func (*Parser) IsAtEnd

func (p *Parser) IsAtEnd() bool

func (*Parser) Parse

func (p *Parser) Parse() Program

type Program

type Program struct {
	Functions []statements.FunctionDeclarationStmt
}

func (Program) Visit

func (p Program) Visit(visitor statements.StmtVisitor) []interface{}

Jump to

Keyboard shortcuts

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