bash

package
v0.0.0-...-713993e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assign

type Assign struct {
	Stmt
	ID         sym.ID
	Identifyer string
	SetTo      Expr
}

func (Assign) Bash

func (a Assign) Bash() fmt.Stringer

type BinaryExpr

type BinaryExpr struct {
	Expr
	Left Expr
	// TODO: make this more strict than just an abitrary string
	Op    string
	Right Expr
}

func (BinaryExpr) Bash

func (b BinaryExpr) Bash() fmt.Stringer

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(table *sym.Table) *Client

func (*Client) Bash

func (c *Client) Bash(tree *Root) []byte

func (*Client) Build

func (c *Client) Build(tree *ast.Root) *Root

type Command

type Command struct {
	Expr
	ID         sym.ID
	Identifyer string
	Args       []Expr
}

func (Command) Bash

func (c Command) Bash() fmt.Stringer

type Comment

type Comment struct {
	Stmt
	ID  sym.ID
	Raw string
}

func (Comment) Bash

func (c Comment) Bash() fmt.Stringer

type Expr

type Expr interface {
	Node
	// contains filtered or unexported methods
}

type FileExpr

type FileExpr struct {
	Expr
	// TODO: make this more strict than just an abitrary string
	Flag  string
	Check Expr
}

func (FileExpr) Bash

func (b FileExpr) Bash() fmt.Stringer

type Identifyer

type Identifyer struct {
	Expr
	ID   sym.ID
	Name string
}

func (Identifyer) Bash

func (v Identifyer) Bash() fmt.Stringer

type If

type If struct {
	Stmt
	ID    sym.ID
	Check Expr
	Root  *Root
}

func (If) Bash

func (i If) Bash() fmt.Stringer

type Math

type Math struct {
	Expr
	Exprs []Expr
}

func (Math) Bash

func (m Math) Bash() fmt.Stringer

type NewLine

type NewLine struct {
	Stmt
	ID sym.ID
}

func (NewLine) Bash

func (n NewLine) Bash() fmt.Stringer

type Node

type Node interface {
	Bash() fmt.Stringer
}

type Root

type Root struct {
	Stmt
	Stmts []Stmt
}

func (Root) Bash

func (r Root) Bash() fmt.Stringer

type Stmt

type Stmt interface {
	Node
	// contains filtered or unexported methods
}

type SubShell

type SubShell struct {
	Expr
	Root Root
}

func (SubShell) Bash

func (b SubShell) Bash() fmt.Stringer

type Test

type Test struct {
	Expr
	Exprs []Expr
}

func (Test) Bash

func (t Test) Bash() fmt.Stringer

type Use

type Use struct {
	Stmt
	ID      sym.ID
	Imports []If
}

func (Use) Bash

func (u Use) Bash() fmt.Stringer

type Value

type Value struct {
	Expr
	ID  sym.ID
	Raw string
}

func (Value) Bash

func (v Value) Bash() fmt.Stringer

Jump to

Keyboard shortcuts

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