codegen

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Package codegen provides R, C and Go code generation for the rgo tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CFuncTemplate

func CFuncTemplate(words []string) *template.Template

cFunc is the template for C shim function file generation.

func Description

func Description(dst FileSystem, info *pkg.Info) error

func GoFuncTemplate

func GoFuncTemplate() *template.Template

goFunc is the template for Go function file generation.

func Licenses

func Licenses(dst FileSystem, prefix string, info *pkg.Info, candidate *regexp.Regexp, verbose bool) error

func MakevarsTemplate

func MakevarsTemplate() *template.Template

func NamespaceTemplate

func NamespaceTemplate(words []string, exported func(string) bool) *template.Template

func RCallTemplate

func RCallTemplate(words []string, exported func(string) bool) *template.Template

rCall is the template for R .Call function file generation.

func Render

func Render(dst FileSystem, pth string, tmpl *template.Template, info *pkg.Info) error

Types

type FileSystem

type FileSystem interface {
	Open(path string) (io.WriteCloser, error)
	Flush() error
}

Jump to

Keyboard shortcuts

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