Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChromaFormatter ¶
type ChromaFormatter struct {
// contains filtered or unexported fields
}
func NewChromaFormatter ¶
func NewChromaFormatter(style *chroma.Style, lexer chroma.Lexer) *ChromaFormatter
func (*ChromaFormatter) Lex ¶
func (c *ChromaFormatter) Lex(input string, _ *input.Token) ([]FormatterToken, error)
type Formatter ¶
type Formatter interface {
Lex(input string, selectedToken *input.Token) ([]FormatterToken, error)
}
type FormatterToken ¶
type ParticipleLexer ¶
type ParticipleLexer struct {
// contains filtered or unexported fields
}
func NewParticipleLexer ¶
func NewParticipleLexer(definition lexer.Definition) *ParticipleLexer
type ParticipleParser ¶
type ParticipleParser[G any] struct { // contains filtered or unexported fields }
func NewParticipleParser ¶
func NewParticipleParser[G any]( parser *participle.Parser[G], parseOptions ...participle.ParseOption, ) *ParticipleParser[G]
func (*ParticipleParser[G]) Lexer ¶
func (p *ParticipleParser[G]) Lexer() Lexer
func (*ParticipleParser[G]) Parse ¶
func (p *ParticipleParser[G]) Parse(input string) (*G, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.