parser

package
v0.0.0-...-444f7c5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

package parser provides a parser that has two stages:

Stage 1: Parse a [string] into an *html.Node tree.

Stage 2: Parse an *html.Node tree into an *ast.Node tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(s string) (*ast.Program, error)

Parse parses a string into Hypo-specific AST nodes.

Types

type Parser

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

Parser transforms the nodes from html.Parser into validated runtime-specific AST nodes.

func New

func New() *Parser

func (*Parser) Parse

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

Parse parses a string into Hypo-specific AST nodes.

Jump to

Keyboard shortcuts

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