Documentation ¶
Overview ¶
Package gen generates Go parser code from a trunnel AST.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorpusTests ¶
CorpusTests generates a test file based on a corpus of test vectors.
func Marshallers ¶
Marshallers builds data marshallers for types in the given files.
Types ¶
type Config ¶
type Config struct { Package string // package name Dir string // directory to output to Seed int64 // seed for corpus generation }
Config defines options for package generation.
func (Config) OutputDirectory ¶
OutputDirectory returns the configured output directory.
func (Config) PackageName ¶
PackageName returns the name of the generated package.
Click to show internal directories.
Click to hide internal directories.