syntax

package
v0.0.0-...-0437ee0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	Hash  string
	Frags [][]*Node
}

func FindSyntaxUnits

func FindSyntaxUnits(data []*Node, m suffixtree.Match, threshold int) Match

FindSyntaxUnits finds all complete syntax units in the match group and returns them with the corresponding hash.

type Node

type Node struct {
	Type     int
	Filename string
	Pos, End int
	Children []*Node
	Owns     int
}

func NewNode

func NewNode() *Node

func Serialize

func Serialize(n *Node) []*Node

func (*Node) AddChildren

func (n *Node) AddChildren(children ...*Node)

func (*Node) Val

func (n *Node) Val() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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