Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockCommand ¶
func NewBlockCommand ¶
func NewBlockCommand(command string, innerBlocks []IBlock) BlockCommand
type BlockHexColor ¶
func NewBlockHexColor ¶
func NewBlockHexColor(color color.Color, innerBlocks []IBlock) BlockHexColor
type BlockText ¶
func NewBlockText ¶
type CommandDirection ¶
type CommandDirection uint8
const ( CDOpen CommandDirection = iota CDClose )
type RichTextLexer ¶
type RichTextLexer struct {
// contains filtered or unexported fields
}
func NewRichTextLexer ¶
func NewRichTextLexer(text string) *RichTextLexer
func (*RichTextLexer) Lex ¶
func (l *RichTextLexer) Lex() []IToken
type RichTextParser ¶
type RichTextParser struct {
// contains filtered or unexported fields
}
func NewRichTextParser ¶
func NewRichTextParser(tokens []IToken) *RichTextParser
func (*RichTextParser) Parse ¶
func (p *RichTextParser) Parse() IBlock
type TokenCommand ¶
type TokenCommand struct { Token Command string Direction CommandDirection }
func NewTokenCommand ¶
func NewTokenCommand(cmd string, dir CommandDirection) TokenCommand
type TokenHexColor ¶
type TokenHexColor struct { Token Color color.Color Direction CommandDirection }
func NewTokenHexColor ¶
func NewTokenHexColor(clr color.Color, dir CommandDirection) TokenHexColor
type TokenText ¶
type TokenText struct { Token // contains filtered or unexported fields }
func NewTokenText ¶
Click to show internal directories.
Click to hide internal directories.