entity

package
v0.0.0-...-cdd69e1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockParser

type BlockParser interface {
	Identifiers() []valueobject2.Identifier
	Kind() valueobject2.Kind
	Parse(l Line) (ParseResult, error)
}

func NewHeading

func NewHeading() BlockParser

func NewParagraph

func NewParagraph() BlockParser

func NewRoot

func NewRoot() BlockParser

type Line

type Line interface {
	String() string
	FirstChar() rune
}

type ParseResult

type ParseResult interface {
	Content() string
	Identifier() string
}

type Parser

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

func NewParser

func NewParser() *Parser

func (*Parser) Find

func (p *Parser) Find(firstChar rune) BlockParser

type ParserCollection

type ParserCollection struct {
	BlockParsers  []BlockParser
	InlineParsers []BlockParser
	ParserMap     map[valueobject.Identifier]BlockParser
}

func (*ParserCollection) InitParserMap

func (m *ParserCollection) InitParserMap()

Jump to

Keyboard shortcuts

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