program

package
v0.0.0-...-2ec072f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	Src   int                    `json:"src"`
	Dst   int                    `json:"dst"`
	Attrs map[string]interface{} `json:"attrs"`
}

func (*Edge) GetBranchType

func (e *Edge) GetBranchType() string

type Graph

type Graph struct {
	NodeList []*data.NodeData `json:"node_list"`
	EdgeList []*Edge          `json:"edge_list"`

	ExtraNodeList []*data.NodeData `json:"extra_node_list"`
}

func ParseJSON

func ParseJSON(jsonData string) (*Graph, error)

func (*Graph) ToASTNodeList

func (g *Graph) ToASTNodeList() ([]lubanAST.INode, error)

func (*Graph) ToAllASTNode

func (g *Graph) ToAllASTNode() ([]lubanAST.INode, error)

func (*Graph) ToExtraASTNodeList

func (g *Graph) ToExtraASTNodeList() ([]lubanAST.INode, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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