codegen

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfElement

type CfElement struct {
	Name      string
	CamelName string
	Offset    int
	Width     int

	CodeWidth    int
	FnType       string
	LookupValues []*LookupValue
	// contains filtered or unexported fields
}

CfElement is the definition for one or more characters that make up an "element"

type CfSubtag

type CfSubtag struct {
	Label    string
	Elements []*CfElement
}

CfSubtag is a Control field *subtag* definition (not that all control fields have subtags (in which case the subtag label is "DEFAULT"))

type CfTag

type CfTag struct {
	Tag     string
	Label   string
	Subtags []*CfSubtag
}

CfTag is a Control field definition

func (CfTag) String

func (t CfTag) String() string

String should return a string that matches, excepting some whitespace and cleaned-up linewraps, the input data. This is primarily intended for testing that the parsing/extraction is working correctly.

type CfTags

type CfTags struct {
	Tags []*CfTag
}

CfTags is a list of Control field definitions

func ExtractCfStruct

func ExtractCfStruct(filename string) (tags CfTags)

ExtractCfStruct extracts the structure for control file entries as defined in the [saved-to-disc] fields list webpage

type Ldr

type Ldr struct {
	Elements []*LdrElement
}

Ldr is the collection of elements that make up a leader definition

func ExtractLdrStruct

func ExtractLdrStruct(filename string) (ldr Ldr)

ExtractLdrStruct extracts the structure for leader entry as defined in the [saved-to-disc] fields list webpage

func (Ldr) String

func (ldr Ldr) String() string

String should return a string that matches, excepting some whitespace and cleaned-up linewraps, the input data. This is primarily intended for testing that the parsing/extraction is working correctly.

type LdrElement

type LdrElement struct {
	Name      string
	CamelName string
	Offset    int
	Width     int

	CodeWidth    int
	FnType       string
	LookupValues []*LookupValue
	// contains filtered or unexported fields
}

LdrElement is the definition for one or more characters that make up an "element"

type LookupValue

type LookupValue struct {
	Code  string
	Label string
}

LookupValue is the definition of a single lookup value for an element

Jump to

Keyboard shortcuts

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