glyphs

package module
v0.0.0-...-1ed2ad4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 3 Imported by: 0

README

glyphs

some kind of glyph based markup.

inspiration

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	Children() []Node
}

type Document

type Document struct {
	Name  string
	Title string
	// contains filtered or unexported fields
}

func (Document) Children

func (d Document) Children() []Node

func (Document) Parent

func (d Document) Parent() Node

func (Document) Pos

func (d Document) Pos() Pos

type Heading

type Heading struct {
	Text  string
	Level int
	// contains filtered or unexported fields
}

func (Heading) Parent

func (h Heading) Parent() Node

func (Heading) Pos

func (h Heading) Pos() Pos
type Link struct {
	Text   string
	Target string
	// contains filtered or unexported fields
}

func (Link) Parent

func (l Link) Parent() Node

func (Link) Pos

func (l Link) Pos() Pos

type List

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

func (List) Children

func (l List) Children() []Node

func (List) Parent

func (l List) Parent() Node

func (List) Pos

func (l List) Pos() Pos

type Node

type Node interface {
	Pos() Pos
	Parent() Node
}

type Parser

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

func NewParser

func NewParser(scanner io.RuneScanner, filename *string) Parser

func (*Parser) Parse

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

type Pos

type Pos struct {
	File *string
	Line int
}

type Text

type Text struct {
	Text string
	// contains filtered or unexported fields
}

func (Text) Parent

func (t Text) Parent() Node

func (Text) Pos

func (t Text) Pos() Pos

Jump to

Keyboard shortcuts

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