Documentation
¶
Index ¶
- Constants
- func Decr(i interface{}, ok bool) (interface{}, bool)
- func GetNameChanger(wf WordFilter) func(string) string
- func Incr(i interface{}, ok bool) (interface{}, bool)
- func Noop(i interface{}, ok bool) (interface{}, bool)
- func Put(i interface{}) func(i interface{}, ok bool) (interface{}, bool)
- func WF_ANSI_C(s string) bool
- func WF_GccC(s string) bool
- func WF_ModernC(s string) bool
- type Block
- type ControlStruct
- type Declaration
- type EFlags
- type EnforceStore
- type Expr
- func NewCall(fmt string, dst interface{}, src ...interface{}) (result *Expr)
- func NewExpr(fmt string, f EFlags, dst interface{}, src ...interface{}) (result *Expr)
- func NewLiteral(dst interface{}, val string) *Expr
- func NewOp(fmt string, dst interface{}, src ...interface{}) (result *Expr)
- func NewSE(fmt string, dst interface{}, src ...interface{}) (result *Expr)
- type ExprRef
- type ExprRefMap
- type GenAction
- type GenFlags
- type Generator
- type GoTo
- type Label
- type SetVolatile
- type TouchVariable
- type WordFilter
Constants ¶
View Source
const ( GA_COUNT = GenAction(iota) GA_GENERATE )
View Source
const ( E_HAS_DEST = EFlags(1 << iota) E_CHEAP E_LITERAL E_NO_OMIT E_TIME_CRITICAL // time critical instructions must not be reordered. )
View Source
const (
GF_ENFORCE_STORE = GenFlags(1 << iota)
)
Variables ¶
This section is empty.
Functions ¶
func GetNameChanger ¶
func GetNameChanger(wf WordFilter) func(string) string
Creates a Name-Changing function, that replaces reserved identifiers (as specified trough 'wf') such as keywords with new names.
Types ¶
type ControlStruct ¶
type ControlStruct struct {
Block
Fmt string
Src []ExprRef
Fmt2 string
Src2 []ExprRef
// The "else"-block. This is called "else" block because
// it is only useful when "if-then-else" is used.
EBlock *Block
}
func CS_If_Then_Else ¶
func CS_If_Then_Else(cond interface{}) *ControlStruct
func ControlStruct1 ¶
func ControlStruct1(fmt string, src ...interface{}) *ControlStruct
func ControlStruct2 ¶
func ControlStruct2(fmt string, src ...interface{}) *ControlStruct
func ControlStruct3 ¶
func ControlStruct3(fmt string, src []interface{}, fmt2 string, src2 []interface{}) *ControlStruct
type Declaration ¶
func Declare ¶
func Declare(t string, names ...string) *Declaration
type EnforceStore ¶
type EnforceStore string
type Expr ¶
func NewLiteral ¶
type ExprRef ¶
func NewExprRef ¶
func NewExprRef(i interface{}) ExprRef
type ExprRefMap ¶
type ExprRefMap struct {
// contains filtered or unexported fields
}
func (*ExprRefMap) Delete ¶
func (e *ExprRefMap) Delete(k ExprRef)
func (*ExprRefMap) Iterate ¶
func (e *ExprRefMap) Iterate(f func(k ExprRef, v interface{}))
type Generator ¶
type SetVolatile ¶
type TouchVariable ¶
type TouchVariable string
Click to show internal directories.
Click to hide internal directories.