ast

package
v0.0.0-...-6e7b214 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(p *Node)

Types

type Direction

type Direction int
const (
	READ Direction = iota
	WRITE
	APPEND
	HERE
)

func (Direction) String

func (i Direction) String() string

type LexType

type LexType int
const (
	WORD LexType = iota
	REDIR
	SIMPLE
	LIST
	BLOCK
	ASYNC
	VAR
	TUPLE
	ASSIGN
	IF
	FOR
	ANDAND
	OROR
	PIPE
	LOAD
	MODULE
)

func (LexType) String

func (i LexType) String() string

type Node

type Node struct {
	Type   LexType
	Str    string
	Quoted bool
	Left   *Node
	Right  *Node
	Dir    Direction
}

func Assign

func Assign(p1, p2 *Node) *Node

func Async

func Async(p *Node) *Node

func Block

func Block(p *Node) *Node

func Load

func Load(p *Node) *Node

func Module

func Module(p *Node) *Node

func New

func New(t LexType, p1, p2 *Node) *Node

func Redir

func Redir(dir Direction) *Node

func Redirect

func Redirect(p1, p2 *Node) *Node

func Simple

func Simple(p *Node) *Node

func Token

func Token(s string) *Node

func Tuple

func Tuple(p *Node) *Node

func Var

func Var(p *Node) *Node

Jump to

Keyboard shortcuts

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