generator

package
v0.0.0-...-52cdf5e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BetterNaming

func BetterNaming(fd fileData) (data, error)

func Gen

func Gen(w io.Writer, d data) error

func InjectFlags

func InjectFlags(d data, flags InjectedFlags) data

Types

type CommentsParser

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

func NewCommentsParser

func NewCommentsParser(src io.Reader, fileName string, typeName string, t string) (*CommentsParser, error)

func (*CommentsParser) Parse

func (r *CommentsParser) Parse() (fileData, error)

type ConflictingNamesError

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

func (ConflictingNamesError) Error

func (error ConflictingNamesError) Error() string

type FSMGenerator

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

func NewFSMGenerator

func NewFSMGenerator(parser Parser) *FSMGenerator

func (*FSMGenerator) Do

func (g *FSMGenerator) Do() error

type InjectedFlags

type InjectedFlags struct {
	PkgName    string
	GenType    bool
	GenDynamic bool
}

type MockParser

type MockParser struct{}

func (*MockParser) Parse

func (mc *MockParser) Parse() data

type Parser

type Parser interface {
	Parse() (data, error)
}

type RealParser

type RealParser struct {
	CommentParser *CommentsParser
}

func (*RealParser) Parse

func (r *RealParser) Parse() (data, error)

type TransitionData

type TransitionData struct {
	Events []lineData
}

Jump to

Keyboard shortcuts

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