Documentation
¶
Overview ¶
Package expr defines data structures representing Neugram expressions.
Index ¶
- type Bad
- type BasicLiteral
- type Binary
- type Call
- type CompLiteral
- type Expr
- type FuncLiteral
- type Ident
- type Index
- type MapLiteral
- type Range
- type Selector
- type Shell
- type ShellAndOr
- type ShellAssign
- type ShellCmd
- type ShellList
- type ShellPipeline
- type ShellRedirect
- type ShellSimpleCmd
- type Slice
- type SliceLiteral
- type TableLiteral
- type Type
- type TypeAssert
- type Unary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicLiteral ¶
type BasicLiteral struct {
Value interface{} // string, *big.Int, *big.Float
}
type CompLiteral ¶
type FuncLiteral ¶
type ShellAndOr ¶
type ShellAndOr struct { Pipeline []*ShellPipeline Sep []token.Token // '&&' or '||'. len(Sep) == len(Pipeline)-1 Background bool }
type ShellAssign ¶
type ShellCmd ¶
type ShellCmd struct { SimpleCmd *ShellSimpleCmd // or: Subshell *ShellList }
type ShellList ¶
type ShellList struct {
AndOr []*ShellAndOr
}
type ShellPipeline ¶
type ShellRedirect ¶
type ShellSimpleCmd ¶
type ShellSimpleCmd struct { Redirect []*ShellRedirect Assign []ShellAssign Args []string }
type SliceLiteral ¶
type Type ¶
Type is not a typical Neugram expression. It is used only for when types are passed as arguments to the builtin functions new and make.
type TypeAssert ¶
Click to show internal directories.
Click to hide internal directories.