cast2

package
v0.0.0-...-df767d8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package cast2 实现将U语言转换为C语言的转换器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

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

func NewPackage

func NewPackage(Thread bool, p *ast2.Package, firstcall bool) *Package

func (*Package) GenerateheaderFile

func (p *Package) GenerateheaderFile() string

func (*Package) Oupput

func (p *Package) Oupput(w io.StringWriter, header string)

func (*Package) OupputC

func (p *Package) OupputC(dir string) (string, error)

OupputC 输出C文件到目录

func (*Package) String

func (p *Package) String() string

type UtoC

type UtoC struct {
	PackageName string
	FileName    string

	Nodes []ast2.Node

	Thread bool
	// contains filtered or unexported fields
}

func (*UtoC) C

func (c *UtoC) C(firstcall bool) string

func (*UtoC) Parser

func (c *UtoC) Parser(tree *ast2.Tree)

Jump to

Keyboard shortcuts

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