decisiontree

package
v0.0.0-...-961fe65 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Value string
	Next  *Node
}

Node is a singly-linked list element in the decision tree

func ConstructTree

func ConstructTree(tokens []string) *Node

ConstructTree generates a Node list from a token stream

func (*Node) HasNext

func (node *Node) HasNext() bool

HasNext returns whether or not there is a next node in the list

func (*Node) IsAssignmentOperator

func (node *Node) IsAssignmentOperator() bool

IsAssignmentOperator returns whether or not the node is an assignment operator

func (*Node) IsCmdLineArgument

func (node *Node) IsCmdLineArgument() bool

IsCmdLineArgument returns whether or not the node is a command line argument

func (*Node) IsEmpty

func (node *Node) IsEmpty() bool

IsEmpty returns whether or not the node is empty

func (*Node) IsStringAssignment

func (node *Node) IsStringAssignment() bool

IsStringAssignment returns whether or not the value matches a single or double quoted string

func (*Node) IsType

func (node *Node) IsType() bool

IsType returns whether or not the node is a type declaration

Jump to

Keyboard shortcuts

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