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
}
type NodeSection ¶
type NodeSection struct {
Heading string
RawHeading string
Content []string
Subsections []*NodeSubsection
}
type NodeSubsection ¶
Click to show internal directories.
Click to hide internal directories.