compiler

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIDLPluginInterfaceHandler

func CreateIDLPluginInterfaceHandler(wrapped IDLPluginInterface)

--------------------------------------------------------------------

func CreateLanguagePluginInterfaceHandler

func CreateLanguagePluginInterfaceHandler(wrapped LanguagePluginInterface)

--------------------------------------------------------------------

func GetDynamicLibSuffix

func GetDynamicLibSuffix() string

--------------------------------------------------------------------

func ModifyKeywords

func ModifyKeywords(definition *IDL.IDLDefinition, keywords map[string]bool, modifyKeyword func(string) string)

-------------------------------------------------------------------- To make sure IDL does not contain names of functions, methods, classes, arguments and return values that equals to keywords, for each name that matches a keyword, it calls to modifyKeyword function The value of keywords map is ignores. The map is used as a set.

Types

type GuestCompiler

type GuestCompiler interface {
	Compile(definition *IDL.IDLDefinition, outputDir string, outputFilename string, guestOptions map[string]string) (err error)
}

type HostCompiler

type HostCompiler interface {
	Compile(definition *IDL.IDLDefinition, outputDir string, outputFilename string, hostOptions map[string]string) (err error)
}

type IDLPluginInterface

type IDLPluginInterface interface {
	ParseIDL(sourceCode string, filePath string) (*IDL.IDLDefinition, bool, error)
}
var IDLPluginMain IDLPluginInterface

type IDLPluginInterfaceHandler

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

--------------------------------------------------------------------

type LanguagePluginInterface

type LanguagePluginInterface interface {
	CompileToGuest(idlDefinition *IDLDefinition, outputPath string, outputFilename string, guestOptions map[string]string) error
	CompileFromHost(idlDefinition *IDLDefinition, outputPath string, outputFilename string, hostOptions map[string]string) error
}

type LanguagePluginInterfaceHandler

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

--------------------------------------------------------------------

type LanguagePluginMain

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

--------------------------------------------------------------------

var PluginMain *LanguagePluginMain

func NewLanguagePluginMain

func NewLanguagePluginMain(hostCompiler HostCompiler, guestCompiler GuestCompiler) *LanguagePluginMain

--------------------------------------------------------------------

func (*LanguagePluginMain) CompileFromHost

func (this *LanguagePluginMain) CompileFromHost(idlDefinition *IDL.IDLDefinition, outputPath string, outputFilename string, hostOptions map[string]string) error

--------------------------------------------------------------------

func (*LanguagePluginMain) CompileToGuest

func (this *LanguagePluginMain) CompileToGuest(idlDefinition *IDL.IDLDefinition, outputPath string, outputFilename string, guestOptions map[string]string) error

--------------------------------------------------------------------

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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