parser

package
v0.0.0-...-76354a4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT 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 {
	Name     string        // The name of the current parser input
	Nodes    *doc.NodeList // The root node list
	Messages *doc.NodeList // Messages generated by the parser

	log.Logger
	// contains filtered or unexported fields
}

Parser contains the parser Parser. The Nodes field contains the parsed nodes of the input input data.

func NewParser

func NewParser(name, text string, logConf log.Config) (*Parser, error)

New returns a fresh parser Parser.

func (*Parser) Parse

func (p *Parser) Parse()

Parse starts parsing the document.

Jump to

Keyboard shortcuts

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