parser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 1

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
}

Parser represents a template parser.

func New

func New(l *lexer.Lexer) *Parser

New creates a new instance of Parser with the given lexer.

func (*Parser) Parse

func (p *Parser) Parse() (*ast.Document, error)

Parse parses the input template and returns the abstract syntax tree (AST) document.

Jump to

Keyboard shortcuts

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