translator

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

Converter -

func NewConverter

func NewConverter(opts ...ConverterOption) (Converter, error)

NewConverter -

func (Converter) FromFile

func (c Converter) FromFile(filename string) (string, error)

FromFile -

func (Converter) FromString

func (c Converter) FromString(input string) (string, error)

FromString -

type ConverterOption

type ConverterOption func(*Converter)

ConverterOption -

func WithGrammar

func WithGrammar(grammar string) ConverterOption

WithGrammar -

func WithGrammarFile

func WithGrammarFile(filename string) ConverterOption

WithGrammarFile -

type MichelineTranslator

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

MichelineTranslator -

func NewJSONTranslator

func NewJSONTranslator() *MichelineTranslator

NewJSONTranslator -

func (*MichelineTranslator) Translate

func (t *MichelineTranslator) Translate(ast *peg.Ast) (string, error)

Translate -

Jump to

Keyboard shortcuts

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