cpp2go

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ast

type Ast interface {
	Translate(filter Filter) (ok bool) //convert part of c or cpp codes to list as ast not all,lat bind and generate to go codes
}

func NewAst

func NewAst() Ast

type Define

type Define interface {
	Find() (ok bool)
}

func NewDefine

func NewDefine() Define

type Enum

type Enum interface {
	Find() (ok bool)
}

func NewEnum

func NewEnum() Enum

type Extern

type Extern interface {
	Find() (ok bool)
}

func NewExtern

func NewExtern() Extern

type Filter

type Filter struct {
	PathInfo
	LineInfos LineInfosType
}

type Filters

type Filters []Filter

type Interface

type Interface interface {
	Ast
	Scanner
	TranslateCFile(path, pkg string)
}

func New

func New() Interface

type Ir

type Ir interface {
	// contains filtered or unexported methods
}

type LineInfo

type LineInfo struct {
	Line int
	Text string

	TextElem []string
	// contains filtered or unexported fields
}

type LineInfosType

type LineInfosType []LineInfo

type Method

type Method interface {
	Find() (ok bool)
	// contains filtered or unexported methods
}

func NewMethod

func NewMethod() Method

type PathInfo

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

type Scanner

type Scanner interface {
	Filters(root string) (filters Filters, ok bool)
	RemoveComment(root string) (ok bool)
}

func NewScanner

func NewScanner() Scanner

type StructType

type StructType interface {
	Ast
	// contains filtered or unexported methods
}

func NewStructType

func NewStructType() StructType

Directories

Path Synopsis
delete
gen

Jump to

Keyboard shortcuts

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