self

package
v0.0.0-...-a96580b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidUnicodeCharacter = errors.New("invalid unicode character")

Functions

This section is empty.

Types

type CommitType

type CommitType int
const (
	None  CommitType = 0
	Alias CommitType = 1 << iota
	Whitespace
	NoWhitespace
	Keyword
	NoKeyword
	FailPass
	Root
)

type Node

type Node struct {
	Name     string
	Nodes    []*Node
	From, To int
	// contains filtered or unexported fields
}

func Parse

func Parse(r io.Reader) (*Node, error)

func (*Node) String

func (n *Node) String() string

func (*Node) Text

func (n *Node) Text() string

func (*Node) Tokens

func (n *Node) Tokens() []rune

type ParseError

type ParseError struct {
	Input      string
	Offset     int
	Line       int
	Column     int
	Definition string
}

func (*ParseError) Error

func (pe *ParseError) Error() string

Jump to

Keyboard shortcuts

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