ast

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgEscape

type ArgEscape int

ArgEscape represents an argument escape (\$N)

func (ArgEscape) ImplementsInline

func (e ArgEscape) ImplementsInline()

type Block

type Block interface {
	ImplementsBlock()
	GetLine() int
}

Block represents a macro line or a text block.

type Escape

type Escape string

Escape represents a regular escape sequence

func (Escape) ImplementsInline

func (e Escape) ImplementsInline()

func (Escape) ToText

func (e Escape) ToText() string

type Inline

type Inline interface {
	ImplementsInline()
}

Inline represents an inline element in a block, such as text or an escape.

type Macro

type Macro struct {
	Name string
	Args [][]Inline
	Line int
}

Macro represents data associated with a macro line.

func (*Macro) GetLine

func (m *Macro) GetLine() int

func (*Macro) ImplementsBlock

func (m *Macro) ImplementsBlock()

type NamedArgEscape

type NamedArgEscape string

NamedArgEscape represents a named argument escape

func (NamedArgEscape) ImplementsInline

func (e NamedArgEscape) ImplementsInline()

type NamedFlagEscape

type NamedFlagEscape string

NamedArgEscape represents a flag escape

func (NamedFlagEscape) ImplementsInline

func (e NamedFlagEscape) ImplementsInline()

type Text

type Text string

Text represents a bunch of inline text.

func (Text) ImplementsInline

func (t Text) ImplementsInline()

type TextBlock

type TextBlock struct {
	Text []Inline
	Line int
}

TextBlock represents data associated with a text block.

func (*TextBlock) GetLine

func (t *TextBlock) GetLine() int

func (*TextBlock) ImplementsBlock

func (t *TextBlock) ImplementsBlock()

type VarEscape

type VarEscape string

ArgEscape represents a variable interpolation escape

func (VarEscape) ImplementsInline

func (e VarEscape) ImplementsInline()

Jump to

Keyboard shortcuts

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