extractor

package
v0.0.0-...-3af71b4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Identifiers Identifiers
	Enums       []Enum
}

type Enum

type Enum struct {
	Identifier string
	Options    []EnumOption
}

type EnumOption

type EnumOption struct {
	Identifier string
	Value      Value
}

type Extractor

type Extractor interface {
	Extract(ast *cc.AST) (Definition, error)
}

* An Extractor extracts everything from the given C headers that is relevant to generating bindings.

This currently includes: - A list of all Identifiers - Enums

func New

func New() Extractor

type Identifiers

type Identifiers map[string]string

type Value

type Value struct {
	Type  ValueType
	Value interface{}
}

type ValueType

type ValueType int
const (
	ValueTypeUnknown ValueType = iota
	ValueTypeIdentifier
	ValueTypeLiteral
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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