parsenode

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

code-from-spec: SPEC/golang/implementation/parsing/node_parsing@LlYjrkw9KerLWbKrZ2Ip7jVrZJQ

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicateAgentSection = errors.New("more than one Agent section exists")
View Source
var ErrDuplicatePrivateSection = errors.New("more than one Private section exists")
View Source
var ErrDuplicatePublicSection = errors.New("more than one Public section exists")
View Source
var ErrDuplicateSubsection = errors.New("two level-2 headings within the same section normalize to the same text")
View Source
var ErrFileUnreadable = errors.New("file cannot be opened or read")
View Source
var ErrHasQualifier = errors.New("logical name contains a parenthetical qualifier")
View Source
var ErrNodeNameDoesNotMatch = errors.New("first heading does not match the logical name after normalization")
View Source
var ErrNotASpecReference = errors.New("logical name is not a SPEC/ reference")
View Source
var ErrUnexpectedContentBeforeFirstHeading = errors.New("file body has non-blank content before the first level-1 heading, or has no level-1 heading at all")
View Source
var ErrUnrecognizedSection = errors.New("unrecognized level-1 heading")

Functions

This section is empty.

Types

type Node

type Node struct {
	NameSection *NodeSection
	Public      *NodeSection
	Agent       *NodeSection
	Private     *NodeSection
}

func NodeParse

func NodeParse(logicalName string) (*Node, error)

type NodeSection

type NodeSection struct {
	Heading     string
	RawHeading  string
	Content     []string
	Subsections []*NodeSubsection
}

type NodeSubsection

type NodeSubsection struct {
	Heading    string
	RawHeading string
	Content    []string
}

Jump to

Keyboard shortcuts

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