py4go

package
v0.0.0-...-7c9f3cf Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// python specific token
	POW token.Token = 100000
)

Variables

This section is empty.

Functions

func Transpile

func Transpile(nodes Node) (gocode string, err error)

Types

type Assign

type Assign struct {
	Left, Right Node
}

func (Assign) String

func (a Assign) String() string

type Ident

type Ident struct {
	Name string
}

func (Ident) String

func (id Ident) String() string

type List

type List struct {
	IsParen bool // false - [], true - ()
	Name    string
	Args    []Node
}

func (List) String

func (l List) String() string

type Node

type Node interface {
	String() string
}

func Parse

func Parse(filename string) (nodes Node, err error)

Parse python file to ast python tree

Jump to

Keyboard shortcuts

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